Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/action-pack/send-mail
Action to send an email.
https://github.com/action-pack/send-mail
github github-action github-actions github-workflow github-workflows
Last synced: 2 months ago
JSON representation
Action to send an email.
- Host: GitHub
- URL: https://github.com/action-pack/send-mail
- Owner: action-pack
- License: mit
- Created: 2024-02-09T11:21:01.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-11-12T13:59:48.000Z (3 months ago)
- Last Synced: 2024-11-12T14:47:32.333Z (3 months ago)
- Topics: github, github-action, github-actions, github-workflow, github-workflows
- Language: JavaScript
- Homepage:
- Size: 849 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
Send a mail
[![Build](https://github.com/action-pack/send-mail/actions/workflows/build.yml/badge.svg)](https://github.com/action-pack/send-mail/)
[![Version](https://img.shields.io/github/v/tag/action-pack/send-mail?label=version&sort=semver&color=066da5)](https://github.com/marketplace/actions/send-mail)
[![Size](https://img.shields.io/github/size/action-pack/send-mail/dist/index.js?branch=release/v1.04&label=size&color=066da5)](https://github.com/action-pack/send-mail/)
Action to send an email.
## Usage đ
```yaml
- name: Send a mail
uses: action-pack/send-mail@v1
with:
# Required connection URL:
connection_url: ${{secrets.MAIL_CONNECTION}}
# Examples:
# * smtp://user:password@server:port
# * smtp+starttls://user:password@server:port
# Required mail subject:
subject: Github Actions job result
# Required recipients' addresses:
to: [email protected],[email protected]
# Required sender full name (address can be skipped):
from: Luke Skywalker #
# Optional plain body:
body: Build job of ${{github.repository}} completed successfully!
# Optional HTML body read from file:
html_body: file://README.html
# Optional carbon copy recipients:
cc: [email protected],[email protected]
# Optional blind carbon copy recipients:
bcc: [email protected],[email protected]
# Optional recipient of the email response:
reply_to: [email protected]
# Optional Message ID this message is replying to:
in_reply_to:
# Optional unsigned/invalid certificates allowance:
ignore_cert: true
# Optional converting Markdown to HTML (set content_type to text/html too):
convert_markdown: true
# Optional attachments:
attachments: attachments.zip,git.diff,./dist/static/*.js
# Optional priority: 'high', 'normal' (default) or 'low'
priority: low
# Optional nodemailerlog: true/false
nodemailerlog: false
# Optional nodemailerdebug: true/false if true lognodem will also be set true
nodemailerdebug: false
```## Troubleshooting âšī¸
### Gmail
Instead of using your normal Google password, use an App password.
1. [Enable 2-Step Verification.](https://support.google.com/accounts/answer/185839?hl=en&co=GENIE.Platform%3DAndroid).
This is needed to create an App password.
2. [Create an App password](https://support.google.com/accounts/answer/185833?hl=en) for `Mail`.## Stars đ
[![Stars](https://starchart.cc/action-pack/send-mail.svg?variant=adaptive)](https://starchart.cc/action-pack/send-mail)