Skip to content

SES

myna supports sending emails and managing identities in Amazon SES.

  • ses.send_email
  • ses.verify_email_identity

Composes an email message and immediately queues it for sending.

FieldTypeRequiredDescription
sourcestringYesThe email address that is sending the email.
to_addresseslistYesThe recipients’ email addresses.
cc_addresseslistNoThe CC recipients.
bcc_addresseslistNoThe BCC recipients.
subjectstringYesThe subject of the message.
html_bodystringNoThe HTML body of the email.
text_bodystringNoThe text body of the email.

At least one of html_body or text_body must be specified.

version = "1.0"
kind = "ses.send_email"
[ses]
source = "sender@example.com"
to_addresses = ["recipient@example.com"]
subject = "Hello from Myna"
text_body = "This is a test email sent via Myna CLI."
html_body = "<h1>Hello from Myna</h1><p>This is a test email.</p>"

Verify Email Identity (ses.verify_email_identity)

Section titled “Verify Email Identity (ses.verify_email_identity)”

Verifies an email identity. This triggers a verification email to the specified address.

FieldTypeRequiredDescription
email_addressstringYesThe email address to verify.
version = "1.0"
kind = "ses.verify_email_identity"
[ses]
email_address = "new-sender@example.com"