This is a minimalistic GitHub Action for sending emails using the Mailgun API. Specify the Mailgun API key along with the Mailgun domain and message to be sent.
Required Mailgun API key.
Required Mailgun domain name.
Required Sender's email address. Ex: 'Hello User hello@example.com' (defaults to 'user@{domain}`).
Required Recipient's email address. You can use commas to separate multiple recipients.
Email addresses to Cc.
Required Message subject.
Text body of the message.
HTML body of the message.
- name: Send Email
uses: firebase/firebase-admin-node/.github/actions/send-email
with:
api-key: ${{ secrets.MAILGUN_API_KEY }}
domain: ${{ secrets.MAILGUN_DOMAIN }}
from: 'User <you@yourdomain.com>'
html: '<h1>Testing some Mailgun awesomness!</h1>'
to: 'foo@example.com'
This Action uses the mailgun.js NPM package to send Emails.
When making a code change remember to run npm run pack to rebuild the
dist/index.js file which is the executable of this Action.