コード例 #1
0
ファイル: test_email.py プロジェクト: tianxinyueming/emailz
def test_email_send_html():
    email.config(host='smtp.exmail.qq.com',
                 port=465,
                 user=SMTP_USER,
                 password=SMTP_PWD)
    email.send(subject='Subject',
               html='<h1>Hello,Emailz</h1>',
               receivers=['*****@*****.**'])
コード例 #2
0
ファイル: test_email.py プロジェクト: tianxinyueming/emailz
def test_email_send_attachments():
    email.config(host='smtp.exmail.qq.com',
                 port=465,
                 user=SMTP_USER,
                 password=SMTP_PWD)
    email.send(subject='Subject',
               attachments='tests/template.html',
               receivers=['*****@*****.**'])
コード例 #3
0
ファイル: test_email.py プロジェクト: tianxinyueming/emailz
def test_email_send():
    email.config(host='smtp.exmail.qq.com',
                 port=465,
                 user=SMTP_USER,
                 password=SMTP_PWD)
    email.send(subject='Subject',
               body='Hello,Emailz',
               receivers=['*****@*****.**'],
               asy=False)
    print('........')
コード例 #4
0
ファイル: test_email.py プロジェクト: tianxinyueming/emailz
def test_email_test():
    email.config(host='smtp.exmail.qq.com',
                 port=465,
                 user=SMTP_USER,
                 password=SMTP_PWD)
    email.test()
コード例 #5
0
def test_email_send():
    email.config(user='******', password=SMTP_PWD)
    email.send(subject='Subject',
               body='Hello,Emailz',
               receivers=['*****@*****.**'])
コード例 #6
0
def test_email_send_attachments():
    email.config(user='******', password=SMTP_PWD)
    email.send(subject='Subject',
               attachments='tests/template.html',
               receivers=['*****@*****.**'])
コード例 #7
0
def test_email_send_html():
    email.config(user='******', password=SMTP_PWD)
    email.send(subject='Subject',
               html='<h1>Hello,Emailz</h1>',
               receivers=['*****@*****.**'])
コード例 #8
0
def test_email_test():
    email.config(user='******', password=SMTP_PWD)
    email.test()