Пример #1
0
from mail import Email

if __name__ == '__main__':
    mail = Email(to='*****@*****.**', subject='Adaptation Complete')
    ctx = {'username': '******'}
    mail.text('adaptation.txt', ctx)
    mail.html('adaptation.html', ctx)  # Optional
    mail.send()

Пример #2
0
from mail import Email

if __name__ == '__main__':
    mail = Email(to='*****@*****.**', subject='Follow-up')
    ctx = {'username': '******'}
    mail.text('followup.txt', ctx)
    mail.html('followup.html', ctx)  # Optional
    mail.send()