Send emails with Amazon Simple Email Service (SES).
Please refer to Amazon's documentation regarding the capabilities and limitations of Amazon SES!
You will need valid AWS credentials as well as an authorized email address or domain on Amazon SES.
The IAM user for this App must have the following permissions:
{
"Statement": [
{
"Effect": "Allow",
"Action": "ses:SendRawEmail",
"Resource": "*"
}
]
}
You can also refer to this page for more information on IAM permissions regarding Amazon SES.
Example
do App(
"aws/ses",
from="john@doe.com",
to=["jane@doe.com", "jack@doe.com"],
cc=["bigboss@doe.com"],
cci=["james@doe.com"],
subject="Example email",
body="<h1>Hi there!</h1><p>I hope this HTML email finds you well.</p>",
text="Hi, hopefully this email in text-only finds you well.",
attachments=["https://example.com/kitty.png"],
)