Core features of python-emails
masterThe python-emails library provides a high-level API for:
- Message Composition: Create HTML and plain-text messages in a single object, including support for headers, CC/BCC, and Reply-To.
- Attachments & Media: Easily add file attachments and embed inline images.
- Template Rendering: Support for Jinja2, Mako, and string templates in
html,text, andsubjectfields. - HTML Processing: Apply transformations via
message.transform(), including CSS inlining and HTML cleanup. - Security: DKIM signing support.
- Loading: Load messages from URLs, HTML files, directories, ZIP archives, and RFC 822 messages.
- Delivery: SMTP sending with SSL/TLS support, including async sending via
send_async()(requiresemails[async]). - Integrations:
DjangoMessagefor Django andflask-emailsfor Flask.