Last updated:
0 purchases
asyncmail 0.1b0
async_mail
By django inspired async mail package.
Supports simple-settings and django settings. These settings entries are expected
to be present
EMAIL_BACKEND = 'async_mail.backends.smtp.EmailBackend'
EMAIL_SENDER = '[email protected]'
EMAIL_HOST = 'your-host-name'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_PORT = 25
EMAIL_USE_TLS = True
EMAIL_TIMEOUT = 5
Example
To send a single mail
from async_mail import Mail
from async_mail.models import Message
mail = Mail()
message = Message(
sender="[email protected]",
recipients=["[email protected]"],
subject="one mail",
message_body="one mail to rule them all"
)
await mail.send_message(message)
TODO
console backend
pydantic settings support
multiple SMTP clients instead of gather for true async execution
Free software: MIT license
Documentation: https://async-mail.readthedocs.io.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1b (2020-06-03)
Beta release.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.