Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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!'
```