Module mail
source code
The lamson.mail module contains nothing more than wrappers around the
big work done in lamson.encoding. These are the actual APIs that you'll
interact with when doing email, and they mostly replicate the
lamson.encoding.MailBase functionality.
The main design criteria is that MailRequest is mostly for reading
email that you've received, so it doesn't have functions for attaching
files and such. MailResponse is used when you are going to write an
email, so it has the APIs for doing attachments and such.
|
|
MailRequest
This is what's handed to your handlers for you to process.
|
|
|
MailResponse
You are given MailResponse objects from the lamson.view methods,
and whenever you want to generate an email to send to someone.
|
|
This fixes the given address so that it is *always* a set() of just
email addresses suitable for routing.
|
ROUTABLE_TO_HEADER
- Value:
-
|