Easily send e-mails from your Azure DevOps pipelines using SendGrid. This task allows you to configure recipients, subject, and body content, with support for both HTML and plain text e-mails.
Install the SendGrid E-mail Task in your Azure DevOps organization. Find it in the Utility section of the task list and add it to your build or release pipeline.
Configuration
SendGrid Settings
SendGrid API Key: Your SendGrid API Key. Generate it from the SendGrid Portal. (Required)
E-mail Settings
Sender Email Address: The sender's e-mail address. You may specify just the e-mail (e.g., alex.johnson@example.com) or include a display name (e.g., Alex Johnson alex.johnson@example.com). (Required)
Recipient Email Addresses: One or more recipient e-mail addresses, separated by commas. You may also include display names. (Required)
Subject: The subject line for the e-mail. (Required)
Email Body: The content of the e-mail. You can provide the body in two ways:
Text: Enter the e-mail body directly as text.
Local File: Specify a local file path to load the e-mail body content from a file.
To send HTML, enter your HTML here or in the file and check the Send as HTML option. (Required)
Send as HTML: Enable this option to send the e-mail body as HTML. (Optional)
Configure CC or BCC addresses: add carbon copy addresses.
CC E-mail Address: One or more recipient e-mail addresses, separated by commas. You may also include display names. (Optional)
BCC E-mail Address: One or more recipient e-mail addresses, separated by commas. You may also include display names. (Optional)