Nutzung von Offizier

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)
Thankful Tuatara