Recently, I was attempting to send automatic emails through Python smtplib. It requires your email account's SMTP Server:
For google, it is: smtp.google.com:587
For you outlook office 365 account, you could find them through the following steps:
outlook.office365.com, log into your account.
On the right upper corner select Option,
On your account page you would see the link of " Setting for POP and IMAP"
There, you could see all your SMTP, POP and IMAP settings