Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

The Email by Sendgrid SendGrid Post-run action plugin is available in the Hub. This plugin may incur additional charges depending on usage within the pipeline. More Info.

...

Uses the Sendgrid service to send emails, and requires you to sign up for a Sendgrid account.

Configuration

Property

Macro Enabled?

Description

Run Condition

No

Optional. When to run the action. Must be 'completion', 'success', or 'failure'. Defaults to 'completion'. If set to 'completion', the action will be executed regardless of whether the pipeline run succeeded or failed. If set to 'success', the action will only be executed if the pipeline run succeeded. If set to 'failure', the action will only be executed if the pipeline run failed.

API Key

Yes

Required. The SendGrid API Key. After logging into your Sendgrid account, you can create a key in the API keys section of the Settings page.

From

Yes

Required. The address to send the email from.

To

Yes

Required. The address to send the email to.

Subject

Yes

Required. The subject of the email.

Content

Yes

Optional. Optional content of the email. Defaults to empty.

Include Workflow Token

Yes

Workflow tokens contain data such as counters, statuses and metrics, that are passed between the nodes of a pipeline. This config determines whether to include the contents of the workflow token in the email message.

Default is No.

Example

This example sends an email from 'team-ops@example.com' to 'team-alerts@example.com' whenever a run fails:

...