org.mail

Module Contents

Classes

TicketEmailExtraArguments

dict() -> new empty dictionary

Functions

send_html_mail(→ None)

" Sends an email rendered from the given template.

send_transactional_html_mail(→ None)

send_marketing_html_mail(→ None)

send_ticket_mail(, attachments, **kwargs)

class org.mail.TicketEmailExtraArguments[source]

Bases: TypedDict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

reply_to: email.headerregistry.Address | str | None[source]
cc: onegov.core.types.SequenceOrScalar[email.headerregistry.Address | str][source]
headers: dict[str, str] | None[source]
org.mail.send_html_mail(request: onegov.org.request.OrgRequest, template: str, content: dict[str, Any], **kwargs: Unpack[EmailArgumentsWithCategory]) None[source]

“ Sends an email rendered from the given template.

Example:

send_html_mail(request, 'mail_template.pt', {'model': self},
    subject=_("Test subject")
    receivers=('recipient@example.org', )
)
org.mail.send_transactional_html_mail(request: onegov.org.request.OrgRequest, template: str, content: dict[str, Any], **kwargs: Unpack[EmailArguments]) None[source]
org.mail.send_marketing_html_mail(request: onegov.org.request.OrgRequest, template: str, content: dict[str, Any], **kwargs: Unpack[EmailArguments]) None[source]
org.mail.send_ticket_mail(request: onegov.org.request.OrgRequest, template: str, subject: str, receivers: Sequence[Address | str], ticket: onegov.ticket.Ticket, content: dict[str, Any] | None = None, force: bool = False, send_self: bool = False, bcc: SequenceOrScalar[Address | str] = (), attachments: Iterable[Attachment | StrPath] = (), **kwargs: Unpack[TicketEmailExtraArguments]) None[source]