Here are some of the features:
Single class to send plain text, HTML email, and attachments
Auto detects attachment types
Support for internationalized headers
Examples
Sending an HTML email:
from mailer import Mailer
from mailer import Message
message = Message(From="me@example.com",
To="you@example.com",
charset="utf-8")
message.Subject = "An HTML Email"
message.Html = """This email uses <strong>HTML</strong>!"""
message.Body = """This is alternate text."""
sender = Mailer('smtp.example.com')
sender.send(message)
Sending an attachment:
from mailer import Mailer
from mailer import Message
message = Message(From="me@example.com",
To="you@example.com",
Subject="Cute Cat")
message.Body = """Kittens with dynamite"""
message.attach("kitty.jpg")
sender = Mailer('smtp.example.com')
sender.send(message)
Tested with Python 2.4 and 2.5
Metadata
Release files for mailer 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mailer-0.2.zip | 3.0 kB | Without provenance | Details for mailer-0.2.zip |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mailer-0.2.win32.exe | Details for mailer-0.2.win32.exe |
Total release size: 67.7 kB
Release files / mailer-0.2.zip
| Download URL | mailer-0.2.zip |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9cd06c03928222abc24c0551a4dfa93d5df9f5c58ef1b5b0d9b6214e764462a
|
|
BLAKE2b-256 checksum How to use checksums |
1ae0e4e1d1bca60fcf7ab73abc67fe4bdb8237024ef8f4a5ccf075fb9b7f3a54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / mailer-0.2.win32.exe
| Download URL | mailer-0.2.win32.exe |
|---|---|
| Size | 64.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e41f0ec829e84bcde258e50c295d35a51432eef7242f3e80406520302707164
|
|
BLAKE2b-256 checksum How to use checksums |
b1de863d238c6f3510bfc824bf823e93a93daeb577acbadc07760575fe4bbec2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mailer 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.