Please enable JavaScript to view this site.

Version:

Navigation: Activities > Activity Reference

Send Email Activity

Prev Top Next More

Description

The Send Email activity is used to programmatically send an email. To use this activity, you must have access to an SMTP mail server. The SMTP connection configuration must be supplied before using this activity.

Usage

Activities such as Run SQL Query could be used to collect data relevant to business needs. The Send Email activity could then be configured with the appropriate recipients and subject. The Body input could be an expression that constructs an HTML email presenting the tabular data. The email can then be sent using the configured mail server to the specified recipients.

Inputs

To

Optional

Type: String | String[]

A recipient or list of recipients to send the email to.

From

Required

Type: String

The sender of the email.

CC

Optional

Type: String | String[]

A recipient or list of recipients to CC the email to.

BCC

Optional

Type: String | String[]

A recipient or list of recipients to BCC the email to.

Subject

Optional

Type: String

The subject of the email.

Body

Required

Type: String

The body of the email. The body can be HTML or plain text. The encodeHtml function should be used to escape all user input to an Html expression to prevent injection attacks. The following expression safely embeds user input as part of an Html expression. =`<div><h1>Field Notes</h1><p>${encodeHtml(userInput)}</p></div>`. More information on injection attacks can be found here.

Attachments

Optional

Type: Object | Object[]

The attachment or list of attachments to send with the email. Attachments can be produced with the Create Email Attachment activity.

Is Body Html

Optional

Type: Boolean

Whether the body of the email is HTML.

Outputs

This activity has no outputs.

Properties

For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

Connectivity Requirements

This activity does not work when the device has intermittent connectivity to the network.

See also...

Mail Server Connections for Server Workflows

OWASP Injection Prevention Cheat Sheet

© 2024 VertiGIS North America Ltd. All Rights Reserved. | Privacy Center | Imprint
Documentation Version 5.42 (220a4365)