SMTP.Send offline_access # If you want refresh token to be avaialble in o365_token.txt. Otherwise you need to get access token every 1hr. Run below python script to obtain access token which will be stored in file called o365_token.txt in current directory … Use below script to send email by providing the authtoken file generated in previous …
