You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RuntimeError when attempting to send email via O365
I'm trying to send an email using the O365 Python package, but I'm encountering a RuntimeError stating that no auth token is found, and an Authentication Flow is needed. I have already authenticated my app with the Azur App Directory and obtained the necessary credentials. Here's the code I'm running:
fromO365importAccountCLIENT_ID="YOUR_CLIENT_ID"CLIENT_SECRET="YOUR_CLIENT_SECRET"Subject='Testing!'TO="abc@xyz.com"Body="George Best quote: I've stopped drinking, but only while I'm asleep."credentials= (CLIENT_ID, CLIENT_SECRET)
account=Account(credentials)
m=account.new_message()
m.to.add(TO)
m.subject=Subjectm.body=Bodym.send()
The text was updated successfully, but these errors were encountered:
RuntimeError when attempting to send email via O365
I'm trying to send an email using the O365 Python package, but I'm encountering a
RuntimeError
stating thatno auth token is found, and an Authentication Flow is needed.
I have already authenticated my app with the Azur App Directory and obtained the necessary credentials. Here's the code I'm running:The text was updated successfully, but these errors were encountered: