Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

makes sending emails very easy by doing all the magic for you, asynchronously

License

NotificationsYou must be signed in to change notification settings

kootenpv/aioyagmail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aioyagmail -- Yet Another GMAIL/SMTP client, using AsyncIO

Join the chat at https://gitter.im/kootenpv/aioyagmailPyPIPyPI

The goal here is to make it as simple and painless as possible to send emails using asyncio.

In the end, your code will look something like this:

importasynciofromaioyagmailimportAIOSMTPloop=asyncio.get_event_loop()asyncdefsend_single():# walks you through oauth2 process if no file at this locationasyncwithAIOSMTP(oauth2_file="~/oauth2_gmail.json")asyag:awaityag.send(to="someone@gmail.com",subject="hi")asyncdefsend_multi():asyncwithAIOSMTP(oauth2_file="~/oauth2_gmail.json")asyag:# Runs asynchronously!awaitasyncio.gather(yag.send(subject="1"),yag.send(subject="2"),yag.send(subject="3"))loop.run_until_complete(send_single())loop.run_until_complete(send_multi())

Username and password

It is possible like inyagmail to use username and password, but this is not actively encouraged anymore.Seehttps://github.com/kootenpv/yagmail#username-and-password how to do it.

For more information

Have a look atyagmail. Any issue NOT related to async should be posted there (or found out about).

Word of caution

Watch out that gmail does not block you for spamming. Using async you could potentially be sending emails too rapidly.

Donate

If you likeaioyagmail, feel free (no pun intended) to donate any amount you'd like :-)

PayPal

About

makes sending emails very easy by doing all the magic for you, asynchronously

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp