Email Sender
Send email messages to your users with a single command. The email will be sent from <subdomain>@abstra-notifications.com. You might want to whitelist this domain to avoid the email being marked as spam.
- This function will only work with verified users in your project.
- The maximum email size is 40MB, which includes attachments, headers, subject, and recipients.
- A message can have at most 20 recipients in total across
to,cc, andbcc.
Customize the subject
Pass title to set the entire email subject without a project prefix. An empty string sets a blank subject. If you omit title or pass None, the subject defaults to Message from <project name> in the project's language.
Copy recipients
send_email accepts optional keyword-only cc and bcc parameters. Each accepts a single email address or a list of addresses; omit them or pass None or [] for no copies.
With non-empty cc or bcc, all to addresses appear in the To header, cc addresses appear in Cc, and bcc addresses are hidden from the message headers. Calls without copies retain the existing behavior: a single to is visible, while multiple to addresses are sent as hidden recipients.
In development mode, the message is sent only to the developer, with the intended recipients annotated in the body; copies are not delivered to their intended addresses. send_email still returns None and does not provide idempotency or a delivery guarantee.