https://github.com/cybervoid/action-send-email-nodemailer
⚙️ A GitHub Action to send an email via Nodemailer
https://github.com/cybervoid/action-send-email-nodemailer
actions aws-ses email github-actions mail multiple-recipients nodemailer send send-email ses smtp
Last synced: 4 months ago
JSON representation
⚙️ A GitHub Action to send an email via Nodemailer
- Host: GitHub
- URL: https://github.com/cybervoid/action-send-email-nodemailer
- Owner: cybervoid
- License: mit
- Created: 2022-03-25T22:55:23.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-27T06:48:55.000Z (about 4 years ago)
- Last Synced: 2025-11-11T23:32:59.647Z (7 months ago)
- Topics: actions, aws-ses, email, github-actions, mail, multiple-recipients, nodemailer, send, send-email, ses, smtp
- Language: JavaScript
- Homepage: https://nodemailer.com
- Size: 406 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Send email via Nodemailer Github Action
This action allows to Send an Email via [Nodemailer](https://nodemailer.com), a Nodejs module to send Emails.
## Key features:
- Heavy focus on security
- Support of multiple transports (SMTP, AWS SES)
- Unicode support (like emojie support)
Full list of [Features](https://nodemailer.com/about/#nodemailer-features)
## Example usage
```yaml
- name: Send mail
uses: cybervoid//action-send-email-nodemailer@v1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
with:
to: recipient@example.com,other-recipient@example.com
from: '"John Smith "'
subject: 'This is my subject'
body: Sample email from ${{github.repository}}. Hello World!
- name: Was the email sent
run: echo "Was the email sent? ${{ steps.message.outputs.message }}"
```
## Outputs
### `message`
Returned message object from Nodemailer
So far I only need the integration for AWS SES. If you need to add another transporter PRs are welcome or open an issue.
## Steps to Setup AWS SES as a transport
- Generate `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` with proper permissions to use SES
- Add them as Github Secret
- Include as environment variable when calling the action.