> ## Documentation Index
> Fetch the complete documentation index at: https://docs-staging-fix-docs-5546-update-db-search.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-staging-fix-docs-5546-update-db-search/rZJaV7znThjw43ZB/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?fit=max&auto=format&n=rZJaV7znThjw43ZB&q=85&s=ae9bcf3a7b1fa10c21eb4f06906fe3f3" 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-staging-fix-docs-5546-update-db-search/rZJaV7znThjw43ZB/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=280&fit=max&auto=format&n=rZJaV7znThjw43ZB&q=85&s=755372bb7131ea0ffa19387a19b00376 280w, https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/rZJaV7znThjw43ZB/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=560&fit=max&auto=format&n=rZJaV7znThjw43ZB&q=85&s=2c45ff02e3c98ba5e29b377ca321aff7 560w, https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/rZJaV7znThjw43ZB/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=840&fit=max&auto=format&n=rZJaV7znThjw43ZB&q=85&s=1322d12ff24f741a9a1d1635620c57e4 840w, https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/rZJaV7znThjw43ZB/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=1100&fit=max&auto=format&n=rZJaV7znThjw43ZB&q=85&s=289502c55fa9154387fcbf8f51d6b9d8 1100w, https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/rZJaV7znThjw43ZB/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=1650&fit=max&auto=format&n=rZJaV7znThjw43ZB&q=85&s=e27b6dc0c8ac6fa104622ad2bee9b650 1650w, https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/rZJaV7znThjw43ZB/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=2500&fit=max&auto=format&n=rZJaV7znThjw43ZB&q=85&s=c10e27f7b840e35c278b9260a5c51842 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-staging-fix-docs-5546-update-db-search/zEvOOSqph5w7cvz_/docs/images/fr-ca/cdy7uua7fh8z/3pT7MZCTVhcL9ueeke0HqQ/8583aedc27af021fe6a62430c6d59adf/sendGrid.png?fit=max&auto=format&n=zEvOOSqph5w7cvz_&q=85&s=5ba22e9d4c1b0a8b0c6a676bcdd614ef" 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).
