Answers for "Use of OfficeApi"

0

Use of OfficeApi

from office365api import Message, Mail
from office365api.model import Recipient, EmailAddress
auth = ('[email protected]', 'YourPassword')
message = Message(Subject='Heads up', Body='First automated alarm.',
    From=Recipient(EmailAddress=EmailAddress(Name='Full Name', Address='[email protected]')),
    ToRecipients= [Recipient.from_email(email='[email protected]')]
    )

m = Mail(auth=auth)
m.send_message(message)
Posted by: Guest on June-05-2021

Python Answers by Framework

Browse Popular Code Answers by Language