Skip to content

mathewrtaylor/O365_email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

O365_email

A functional demo of the O365 Module to send an email on an authenticated, tokenized account.

Prep

  • Create an app in Azure Developer's portal (Included in Setup)
  • Create Secret, and copy tennant, client and secret (Included in Setup)
  • Load the python script, with dotenv, O365

Setup

Usage

  • Can be imported or copied into your own scripts
  • Usage is email(emailto, emailsubject, emailbody, emailfrom='emailaddress@senderandappauthor.com', emailcc=None)
    • Where emailto is your intended recipient
    • emailsubject is the email subject
    • emailbody is the body of the email
    • emailfrom is the email that it's being sent from. Note that this account must be authorized.
    • emailcc is the CC email address

Credits

This is a demonstration of the usage of Microsoft Graph API, as set: https://github.com/O365/python-o365
Super big thanks to https://github.com/jrmatchett for reviewing my code and help refactor it!

License

MIT

About

A functional demo of the O365 Module to send an email on an authenticated, tokenized account.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages