Cloud Custodian Mailer is a reference mailer implementation for sending email notifications from Cloud Custodian policies. Version 0.6.49 requires Python >=3.9,<4.0. It is released irregularly alongside Cloud Custodian releases.
pip install c7n-mailerVerified import paths — ran on the pinned version, not inferred.
Initialize a Mailer with an SQS queue URL and AWS config. Note: session can be None to use default boto3 credential chain.
Use 'from c7n_mailer import Mailer' instead of 'from c7n.mailer import mailer'.
Ensure your SQS queue has a subscription to the SNS topic where Cloud Custodian publishes messages. Verify the queue ARN and policy allow SNS to send.
Verify the email address or domain in AWS SES console. Use SES sandbox mode only for verified recipients.
Set requires-python = ">=3.9" in your environment or use an older c7n-mailer version if locked to 3.8.