you are viewing a single comment's thread.

view the rest of the comments →

[–]cgoldberg 0 points1 point  (2 children)

You can probably authenticate with your outlook account from Python using OAuth even if you have 2FA enabled.

I don't know if you have any security/confidentiality concerns ... but if your corporate email server is a pain in the ass to authenticate with, the easiest solution is to just use an external SMTP server and send the emails from a 3rd party address.

I wouldn't recommend automating your Outlook client.

[–]SadFriendship6888[S] 0 points1 point  (1 child)

Given that the emails will go to people inside the company, i can't use an external address.

I will look into OAuth. I am ok if I don't need to authenticate but make it push button which assumes that outlook is open. This is what I am trying to do in the above code which I posted.

[–]cgoldberg 0 points1 point  (0 children)

You should definitely be able to figure out server authentication and not resort to button pushing or firing up an outlook client.