> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-fix-tenant-logs-locale-nav.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SendGrid

> Découvrez comment configurer vos actions de flux SendGrid pour envoyer des courriels.

## Configurer la connexion à votre coffre-fort

Pour configurer une connexion au coffre-fort pour vos actions SendGrid, vous aurez besoin d’une **clé API** :

<Frame>
  <img src="https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/TcOw3LoxsnygbXeS/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?fit=max&auto=format&n=TcOw3LoxsnygbXeS&q=85&s=bb6ff96fd24405720f56e3f2d5459443" alt="Dashboard > Actions > Forms > Flows > actions > SendGrid" data-og-width="1404" width="1404" data-og-height="545" height="545" data-path="docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/TcOw3LoxsnygbXeS/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=280&fit=max&auto=format&n=TcOw3LoxsnygbXeS&q=85&s=5a9f6899a3605af0632a62642c152b03 280w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/TcOw3LoxsnygbXeS/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=560&fit=max&auto=format&n=TcOw3LoxsnygbXeS&q=85&s=b5b2574a5a5f9f21441c860b76f99b6f 560w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/TcOw3LoxsnygbXeS/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=840&fit=max&auto=format&n=TcOw3LoxsnygbXeS&q=85&s=b20774ce4e15581db49c6999f701e84c 840w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/TcOw3LoxsnygbXeS/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=1100&fit=max&auto=format&n=TcOw3LoxsnygbXeS&q=85&s=c75e44a3f804bfd23023977d69c58f7c 1100w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/TcOw3LoxsnygbXeS/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=1650&fit=max&auto=format&n=TcOw3LoxsnygbXeS&q=85&s=932e17287c810e856c8b3708ef64c0f3 1650w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/TcOw3LoxsnygbXeS/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=2500&fit=max&auto=format&n=TcOw3LoxsnygbXeS&q=85&s=fac9798facbda1327058521c7d861a74 2500w" />
</Frame>

Celle-ci peut être trouvée sur la page Settings (Réglages) du [tableau de bord SendGrid](https://app.sendgrid.com/settings/api_keys) sous les clés API.

## Send email (Envoyer un courriel)

Envoyer un courriel en utilisant SendGrid comme fournisseur de messagerie.

<Frame>
  <img src="https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/UG4x3-0g-gLUloF4/docs/images/fr-ca/cdy7uua7fh8z/3pT7MZCTVhcL9ueeke0HqQ/8583aedc27af021fe6a62430c6d59adf/sendGrid.png?fit=max&auto=format&n=UG4x3-0g-gLUloF4&q=85&s=5be30a201840f9e0df553c02825a7b17" alt="" width="1398" height="1229" data-path="docs/images/fr-ca/cdy7uua7fh8z/3pT7MZCTVhcL9ueeke0HqQ/8583aedc27af021fe6a62430c6d59adf/sendGrid.png" />
</Frame>

### Paramètres de saisie

| Paramètre                                      | Description                                                                                                                          |
| ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| Nom de l’expéditeur                            | Le nom de l’expéditeur                                                                                                               |
| Courriel de l’expéditeur (obligatoire)         | L’adresse courriel de l’expéditeur                                                                                                   |
| Nom du destinataire                            | Le nom du destinataire                                                                                                               |
| Adresse courriel du destinataire (obligatoire) | L’adresse courriel du destinataire                                                                                                   |
| Objet (obligatoire)                            | L’objet du courriel                                                                                                                  |
| Type de courriel (obligatoire)                 | Envoyer un courriel avec contenu HTML ou un modèle enregistré (optionnel)                                                            |
| Message (obligatoire)                          | Message en format HTML ou un modèle (optionnel).                                                                                     |
| ID du modèle (facultatif)                      | Si vous utilisez un modèle, son ID peut être trouvé dans le [ tableau de bord SendGrid ](https://mc.sendgrid.com/dynamic-templates). |
| Variables personnalisées (facultatif)          | Ajoutez des variables personnalisées à insérer dans votre modèle.                                                                    |

### Paramètres de sortie

Vous trouverez les codes de réponse et d’état attendus dans la [documentation de SendGrid](https://www.twilio.com/docs/sendgrid/api-reference/mail-send/mail-send).
