# SendGrid Mail Action

Thia action will send a mail message using your SendGrid service account. You can either input the mail body directly or specify a transactional template id.

![](https://2532694803-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-LhWIVML4px9xuNqNJNI%2F-LhWIWMiYuCFIIgu94ip%2Fimage.png?alt=media\&token=e32544e1-b321-41c8-a964-5eaad24b8f5c)

### Settings

The action uses the following settings:

| Setting     | Description                                                                                       | [Parsed](https://docs.xenioo.com/actions-and-operations/dynamic-parsing) |
| ----------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| API Key     | The API key associated to your SendGrid account                                                   | :white\_check\_mark:                                                     |
| From        | The sender email address. Must be one of the addresses you've validated on your SendGrid account. | :white\_check\_mark:                                                     |
| To          | The recipients of the message.                                                                    | :white\_check\_mark:                                                     |
| Mode        | Choose to send a custom message or an existing transactional template                             | :no\_entry:                                                              |
| Subject     | The subject of the mail message                                                                   | :white\_check\_mark:                                                     |
| Body        | The full body of the mail message                                                                 | :white\_check\_mark:                                                     |
| Template Id | The id of the transactional template you wish to use.                                             | :white\_check\_mark:                                                     |

### Remarks

Multiple addresses can be specified in the To field by separating each one with a semicolon.

The Body setting can contain full html formatting. Different mail clients may choose to render custom html differently.

Both Body and Template contents are [fully parsed](https://docs.xenioo.com/actions-and-operations/dynamic-parsing) by Xenioo at runtime.

### Trigger

This action does not trigger any event.

### Variables

This action does not produce any variable.

### Availability

Channel specific availability follows the table below:

| Channel          | Availability     |
| ---------------- | ---------------- |
| Facebook         | Fully Available. |
| WhatsApp         | Fully Available. |
| Telegram         | Fully Available. |
| Web              | Fully Available. |
| Alexa            | Fully Available. |
| Google Assistant | Fully Available. |
| Slack            | Fully Available. |
| API              | Fully Available. |

This action can be used only inside interactions and not as child of other actions. This action requires a [Premium Account](https://docs.xenioo.com/basic-concepts/your-account/upgrading-from-free) to be used on a live chatbot.
