Module mailer
source code
mailer module
Simple front end to the smtplib and email modules,
to simplify sending email.
A lot of this code was taken from the online examples in the
email module documentation:
http://docs.python.org/library/email-examples.html
Released under MIT license.
Version 0.5 is based on a patch by Douglas Mayle
Sample code:
import mailer
message = mailer.Message()
message.From = "me@example.com"
message.To = "you@example.com"
message.Subject = "My Vacation"
message.Body = open("letter.txt", "rb").read()
message.attach("picture.jpg")
sender = mailer.Mailer('mail.example.com')
sender.send(message)
Version:
0.5
Author:
Ryan Ginstrom
License:
MIT
|
|
Mailer
Represents an SMTP connection.
|
|
|
Message
Represents an email message.
|
|
|
__description__ = 'A module to send email simply in Python'
|