Skip to content

Repository files navigation

Action to send email AWS SES without SMTP credentials

Send Email via AWS SES directly from your GitHub workflows.

Action Icon

Prerequisites

  • AWS Account
  • Verified email or domain in AWS SES
  • AWS IAM user with SES:SendEmail permissions

Environment Variables

The following environment variables are required:

NameDescription
AWS_ACCESS_KEY_IDAWS Access Key ID
AWS_SECRET_ACCESS_KEYAWS Secret Access Key
AWS_DEFAULT_REGIONAWS Region

Inputs

NameDescriptionRequiredMultiple Values Allowed
bccEmail address of the BCC recipientNoYes
bodyBody of the emailNoNo
body_htmlBody of the email in HTML formatNoNo
ccEmail address of the CC recipientNoYes
fromEmail address of the senderYesNo
reply_toEmail address to reply toNoYes
subjectSubject of the emailYesNo
toEmail address of the recipientYesYes

Example Usage

Here is a simple example that demonstrates how to use this action:

name: Send Email via AWS SESon:
push:
branches:
- mainenv:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}AWS_DEFAULT_REGION: 'ap-south-1'jobs:
send-email:
runs-on: ubuntu-lateststeps:
- name: Checkout codeuses: actions/checkout@v2
- name: Send email using AWS SESuses: dsfx3d/action-aws-ses@v1with:
to: 'recipient1@example.com,recipient2@example.com'from: 'sender@example.com'subject: 'GitHub Action Test'body: 'This is a test email sent from a GitHub Action.'cc: 'cc1@example.com,cc2@example.com'bcc: 'bcc1@example.com,bcc2@example.com'reply_to: 'reply1@example.com,reply2@example.com'body_html: '<h1>This is a test email</h1>'

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Releases

Packages

Used by

Contributors

Languages