Skip to main content

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

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)

Source distribution for mailer 0.2
File Size Uploaded
mailer-0.2.zip 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mailer 0.2
File Interpreter ABI Platform
mailer-0.2.win32.exe Details

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

Release history Release notifications | RSS feed

0.8.1

2 release files

0.8

2 release files

0.7

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

This release

0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page