if __name__ == '__main__':
HOST = 'smtp.gmail.com'
SUBJECT = 'test email from python'
TO = ('***@qq.com', '***@gmail.com', '***@qq.com')
FROM = '***@gmail.com'
CONTENT = ''' Ppython send information.
access_num 123
page_um 1231231
click_num 1231231
data 23M
num 3
'''
test = SendMail(HOST, 587, FROM, TO, SUBJECT)
test.login_mail(FROM, 'YourPassword')
test.send_text(CONTENT)
test.send()
tangjiaxing669/modules
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published