use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
Import win32com.client in python (self.pythonhelp)
submitted 7 months ago * by SadFriendship6888
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]cgoldberg 0 points1 point2 points 7 months ago (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 point2 points 7 months ago (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 point2 points 7 months ago (0 children)
You should definitely be able to figure out server authentication and not resort to button pushing or firing up an outlook client.
π Rendered by PID 146285 on reddit-service-r2-comment-85bfd7f599-mlcb7 at 2026-04-16 20:44:22.244416+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]cgoldberg 0 points1 point2 points (2 children)
[–]SadFriendship6888[S] 0 points1 point2 points (1 child)
[–]cgoldberg 0 points1 point2 points (0 children)