Registry / communication / mailer

mailer

JSON →
library0.8.1pypypiunverified

A simple Python module to send email messages. Current version 0.8.1, last updated in 2011. No longer actively maintained; use in legacy projects only.

pip install mailer==0.8.1
INSTALL
IMPORT
SIG · MAILER
M
mailer
communicationpythonv0.8.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Mailer
from mailer import Mailer
import mailer.Mailer
Mailer is a class inside the mailer module.
Message
from mailer import Message
Correct import for Message class.

Send a plain text email via SMTP.

from mailer import Mailer, Message mailer = Mailer('smtp.example.com') mailer.login('user@example.com', 'password') msg = Message(From='from@example.com', To='to@example.com', Subject='Hello', Body='World') mailer.send(msg)
Debug
Known issues
deprecatedmailer 0.8.1 is over a decade old; no support for modern TLS/SSL or authentication. Use smtplib from stdlib or yagmail for modern email.
fix
Migrate to yagmail or smtplib.
affects: >=0.8.0
gotchaThe login method does not support password-less authentication or OAuth. Only plain password.
fix
Use a dedicated library like yagmail for Gmail OAuth.
affects: all
Upgrade
Version history
0.8.1latest on PyPI · released Apr 22, 2015
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Amazon
1
OpenAI (training)
1
Resources
mailer — pip install mailer · libregistry