l.s.m.t.t.AttachmentMailer(BaseMailerSubclass) : class documentation

Part of lp.services.mail.tests.test_basemailer View In Hierarchy

Subclass the test mailer to add an attachment.
Method _addAttachments Add any appropriate attachments to a MailController.

Inherited from BaseMailerSubclass:

Method _getBody Return the complete body to use for this email.

Inherited from BaseMailer (via BaseMailerSubclass):

Method __init__ Constructor.
Method generateEmail Generate the email for this recipient.
Method textDelta Return a textual version of the class delta.
Method sendOne Send notification to one recipient.
Method sendAll Send notifications to all recipients.
Method _getFromAddress Undocumented
Method _getToAddresses Undocumented
Method _getSubject The subject template expanded with the template params.
Method _getReplyToAddress Return the address to use for the reply-to header.
Method _getHeaders Return the mail headers to use.
Method _getTemplateName Return the name of the template to use for this email body.
Method _getTemplateParams Return a dict of values to use in the body and subject.
Method _getFooter Provide a footer to attach to the body, or None.
Method _getExpandedFooter Provide an expanded footer for recipients who have requested it.
def _addAttachments(self, ctrl, email):
Add any appropriate attachments to a MailController.

Default implementation does nothing. :param ctrl: The MailController to add attachments to. :param email: The email address of the recipient.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.