Airflow Summit 2025 is coming October 07-09. Register now to secure your spot!

airflow.providers.amazon.aws.notifications.ses

Attributes

send_ses_notification

Classes

SesNotifier

Amazon Simple Email Service (SES) Notifier.

Module Contents

class airflow.providers.amazon.aws.notifications.ses.SesNotifier(*, aws_conn_id=SesHook.default_conn_name, region_name=None, mail_from, to, subject, html_content, files=None, cc=None, bcc=None, mime_subtype='mixed', mime_charset='utf-8', reply_to=None, return_path=None, custom_headers=None, **kwargs)[source]

Bases: airflow.providers.common.compat.notifier.BaseNotifier

Amazon Simple Email Service (SES) Notifier.

Parameters:
  • mail_from (str) – Email address to set as email’s from

  • to (str | collections.abc.Iterable[str]) – List of email addresses to set as email’s to

  • subject (str) – Email’s subject

  • html_content (str) – Content of email in HTML format

  • files (list[str] | None) – List of paths of files to be attached

  • cc (str | collections.abc.Iterable[str] | None) – List of email addresses to set as email’s CC

  • bcc (str | collections.abc.Iterable[str] | None) – List of email addresses to set as email’s BCC

  • mime_subtype (str) – Can be used to specify the subtype of the message. Default = mixed

  • mime_charset (str) – Email’s charset. Default = UTF-8.

  • return_path (str | None) – The email address to which replies will be sent. By default, replies are sent to the original sender’s email address.

  • reply_to (str | None) – The email address to which message bounces and complaints should be sent. “Return-Path” is sometimes called “envelope from”, “envelope sender”, or “MAIL FROM”.

  • custom_headers (dict[str, Any] | None) – Additional headers to add to the MIME message. No validations are run on these values, and they should be able to be encoded.

template_fields: collections.abc.Sequence[str] = ('aws_conn_id', 'region_name', 'mail_from', 'to', 'subject', 'html_content', 'files', 'cc',...[source]
aws_conn_id = 'aws_default'[source]
region_name = None[source]
mail_from[source]
to[source]
subject[source]
html_content[source]
files = None[source]
cc = None[source]
bcc = None[source]
mime_subtype = 'mixed'[source]
mime_charset = 'utf-8'[source]
reply_to = None[source]
return_path = None[source]
custom_headers = None[source]
property hook: airflow.providers.amazon.aws.hooks.ses.SesHook[source]

Amazon Simple Email Service (SES) Hook (cached).

notify(context)[source]

Send email using Amazon Simple Email Service (SES).

async async_notify(context)[source]

Send email using Amazon Simple Email Service (SES) (async).

airflow.providers.amazon.aws.notifications.ses.send_ses_notification[source]

Was this entry helpful?