Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raynigon/sendgrid-mail-action
A SendGrid mail action
https://github.com/raynigon/sendgrid-mail-action
Last synced: 10 days ago
JSON representation
A SendGrid mail action
- Host: GitHub
- URL: https://github.com/raynigon/sendgrid-mail-action
- Owner: raynigon
- License: apache-2.0
- Created: 2021-06-30T07:20:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-23T17:22:10.000Z (28 days ago)
- Last Synced: 2024-10-25T05:02:32.575Z (26 days ago)
- Language: TypeScript
- Size: 746 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SendGrid Mail Action
This actions send a mail using the SendGrid API to the defined mails
## Inputs
### `sendgrid-token`
**Required** The token of the SendGrid that will be used.
### `to`
**Required** The receivers ( can be only one ) that the email will go, seperated by the comma (,) character. For example
```
to: [email protected],[email protected]
```
where "," can be anything as it can be defined at the splitterator.### `from`
**Optional** The mail that will be shown as the sender. Default : "[email protected]"
### `subject`
**Optional** The subject of the mail. Default: GitHub action notification
### `text`
**Optional** The content of the mail as plain text.
### `html`
**Optional** The content of the mail as HTML Document.
### `attachments`
**Optional** A comma seperated list of files which should be attached to the e-mail.
Mime Types will be calculated from the file extension. If no mime type was found `text/plain` is assumed.## Example usage
```
- name: SendGrid Action
uses: raynigon/[email protected]
with:
sendgrid-token: 'sample'
to: '[email protected]'
text: 'hello world!'
```