A library for sending email from Pyramid web applications. It wraps Python's smtplib and provides a simple API to send email messages with attachments, CC, BCC, and more. Version 0.15.1 is the latest release, but the project appears unmaintained since 2016.
pip install pyramid-mailerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage of pyramid_mailer: create a Mailer from a request, construct a Message, and send.
Always provide a 'sender' parameter (email string) when creating a Message.
Wrap mailer.send in try/except or configure logging to capture backend exceptions.
Consider switching to a more modern alternative like mailjet, sendgrid, or use smtplib directly.
Use 'from pyramid_mailer.message import Message' instead of 'from pyramid_mailer import Message'.
Provide a 'sender' argument, e.g., Message(subject='...', sender='me@example.com', ...).
Configure the correct SMTP host and port in your .ini file (e.g., mail.host = smtp.example.com, mail.port = 587) and ensure credentials are set if needed.