La tâche Envoyer un e-mail vous permet d'envoyer des notifications personnalisées par e-mail à partir de votre intégration.
Vous pouvez envoyer un e-mail à un ou plusieurs destinataires avec un objet personnalisé et un message personnalisé.
Configurer la tâche Envoyer un e-mail
Pour configurer la tâche Envoyer un e-mail :
Dans la console Google Cloud , accédez à la page Application Integration (Intégration d'applications).
Dans le menu de navigation, cliquez sur Intégrations.
La page Intégrations s'affiche et liste toutes les intégrations disponibles dans le projet Google Cloud.
Sélectionnez une intégration existante ou cliquez sur Créer une intégration pour en créer une.
Si vous créez une intégration :
Saisissez un nom et une description dans le volet Créer une intégration.
Sélectionnez une région pour l'intégration.
Sélectionnez un compte de service pour l'intégration. Vous pouvez modifier ou mettre à jour les informations du compte de service d'une intégration à tout moment dans le volet infoRécapitulatif de l'intégration de la barre d'outils d'intégration.
Cliquez sur Créer. L'intégration nouvellement créée s'ouvre dans l'éditeur d'intégration.
Dans la barre de navigation de l'éditeur d'intégrations, cliquez sur Tâches pour afficher la liste des tâches et des connecteurs disponibles.
Cliquez sur l'élément de tâche Envoyer un e-mail et placez-le dans l'éditeur d'intégrations.
Cliquez sur l'élément de la tâche Envoyer un e-mail du concepteur pour ouvrir le volet de configuration de la tâche Envoyer un e-mail.
Configurez les champs affichés à l'aide des propriétés de configuration de la tâche, comme indiqué dans les tableaux ci-dessous.
Les modifications que vous avez apportées aux propriétés sont enregistrées automatiquement.
Propriétés de configuration
Le tableau suivant décrit les propriétés de configuration de la tâche Envoyer un e-mail.
Property (Propriété)
Type de données
Description
Recipients
Chaîne
Adresse e-mail des destinataires. Vous pouvez spécifier plusieurs adresses e-mail séparées par une virgule. Par exemple, test1@gmail.com,test2@gmail.com.
Vous pouvez également créer une variable de type Tableau de chaînes et ajouter des adresses e-mail séparées par une virgule dans la valeur.
Subject
Chaîne
Email Subject Line
Body
Chaîne
Corps de l'e-mail en texte brut.
Vous pouvez définir les propriétés sur l'une des valeurs suivantes :
Un littéral
Une variable d'intégration
Combiner un littéral et une variable d'intégration
Pour les champs Subject (Objet) et Body (Corps), vous pouvez saisir des combinaisons de littéraux et de variables d'intégration pour les valeurs de chaîne. Utilisez la notation en dollars pour les noms de variables : le signe $ doit être placé avant et après le nom de la variable.
Par exemple, si vous souhaitez utiliser une variable $varSubject$ dans l'objet de l'e-mail, vous devez saisir un texte semblable à Test $varSubject$ , où Test est un littéral et $varSubject$ est la variable.
Stratégie de traitement des erreurs
Une stratégie de traitement des erreurs d'une tâche spécifie l'action à effectuer si celle-ci échoue en raison d'une erreur temporaire. Pour en savoir plus sur l'utilisation et les différents types de stratégies de traitement des erreurs, consultez la page Stratégies de traitement des erreurs.
Quotas et limites
Pour plus d'informations sur les quotas et les limites, consultez la section Quotas et limites.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/03 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/03 (UTC)."],[[["\u003cp\u003eThe Send Email task allows you to send custom email notifications directly from your integration to one or more recipients.\u003c/p\u003e\n"],["\u003cp\u003eYou can configure the Send Email task within the Application Integration editor by specifying recipients, subject, and the message body.\u003c/p\u003e\n"],["\u003cp\u003eEmail properties such as recipients, subject, and body can be set using literals, integration variables, or a combination of both.\u003c/p\u003e\n"],["\u003cp\u003eError handling strategies can be implemented to manage temporary errors that may occur during the execution of the Send Email task.\u003c/p\u003e\n"],["\u003cp\u003eYou can find additional information about supported connectors, tasks, error handling, testing and publishing in the provided links.\u003c/p\u003e\n"]]],[],null,["# Send Email task\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nSend Email task\n===============\n\nThe **Send Email** task lets you send custom email notifications from your integration.\nYou can email one or more recipients with a custom subject and a custom message.\n\nConfigure the Send Email task\n-----------------------------\n\nTo configure the **Send Email** task:\n\n1. In the Google Cloud console, go to the **Application Integration** page.\n\n [Go to Application Integration](https://console.cloud.google.com/integrations)\n2. In the navigation menu, click **Integrations** .\n\n\n The **Integrations** page appears listing all the integrations available in the Google Cloud project.\n3. Select an existing integration or click **Create integration** to create a new one.\n\n\n If you are creating a new integration:\n 1. Enter a name and description in the **Create Integration** pane.\n 2. Select a region for the integration. **Note:** The **Regions** dropdown only lists the regions provisioned in your Google Cloud project. To provision a new region, click **Enable Region** . See [Enable new region](/application-integration/docs/enable-new-region) for more information.\n 3. Select a service account for the integration. You can change or update the service account details of an integration any time from the info **Integration summary** pane in the integration toolbar. **Note:** The option to select a service account is displayed only if you have enabled integration governance for the selected region.\n 4. Click **Create** . The newly created integration opens in the *integration editor*.\n\n\n4. In the *integration editor* navigation bar, click **Tasks** to view the list of available tasks and connectors.\n5. Click and place the **Send Email** task element in the integration editor.\n6. Click the **Send Email** task element on the designer to open the **Send Email** task configuration pane.\n7. Configure the displayed fields using the [Configuration properties](#params) for the task as detailed in the tables below.\n\n\n All changes to the properties are saved automatically.\n\nConfiguration properties\n------------------------\n\n\nThe following table describes the configuration properties of the **Send Email** task.\n\n\nYou can set the properties to any of the following values:\n\n- A literal\n- An integration variable\n- A combination of a literal and an integration variable\n\n\nFor the **Subject** and **Body** fields, you can enter combinations of literals and integration variables for the string values. Use dollar sign notation for variable names, that is, precede and follow the variable name with a `$` sign.\nFor example, if you want to use a variable `$varSubject$` in the email **Subject** , you will enter text similar to `Test $varSubject$ `where `Test` is a literal and `$varSubject$` is the variable.\n\nError handling strategy\n-----------------------\n\n\nAn error handling strategy for a task specifies the action to take if the task fails due to a [temporary error](/application-integration/docs/error-handling). For information about how to use an error handling strategy, and to know about the different types of error handling strategies, see [Error handling strategies](/application-integration/docs/error-handling-strategy).\n\nQuotas and limits\n-----------------\n\nFor information about quotas and limits, see [Quotas and limits](/application-integration/docs/quotas).\n\nWhat's next\n-----------\n\n- Learn about [all tasks and triggers](/application-integration/docs/all-triggers-tasks).\n- Learn how to [test and publish an integration](/application-integration/docs/test-publish-integrations).\n\n- Learn about [error handling](/application-integration/docs/error-handling-strategy).\n- Learn about [integration execution logs](/application-integration/docs/introduction-logs)."]]