SendEmailWithAttachments (IEmailService)

You can send an email message from the Workflow server with optional attachments to multiple recipients.

Make sure that the email configuration for the server has been set up.

When configuring Workflow emails, recipients can be specified using the parameters for Recipient Emails, Recipient Resources, or both. At least one recipient must be specified.
  1. Click Configure Method to select a call method. See Configure Parameters for a Call Method for more information.
  2. Enter or edit values as shown in the table below, and then click Save.
  3. Click Run () to run Workflow and the configured call method.
InputsData TypeDescription
Recipient EmailsString[]

Email message recipients are expressed as email addresses.

In the Inputs section of the configuration pane, click the ellipsis () to open the String Collection Editor dialog box. Enter one or more email addresses into the Recipient field, and then click OK.
Recipient ResourcesIEnumerable<DirectoryResource>

Specifies a person, class, or group from the Personnel model who will receive the email. All recipients must have email addresses must be configured in order avoid errors.

In the Inputs section of the configuration pane, click the ellipsis () to open the Universal Browser. From the Navigate tab, select the resource.
SenderDirectoryResource

Specifies the person or group from the Personnel model who is sending the email. An email address must be configured for the sender resource.

In the Inputs section of the configuration pane, click the ellipsis () to open the Universal Browser. From the Navigate tab, select the resource.
Note: If not specified, the default sender is used.
SubjectStringSpecifies the subject heading of the email being sent.
BodyStringSpecifies the body of the email being sent.
AttachmentsString
In the Inputs section of the configuration pane, click the ellipsis () to open the String Collection Editor dialog box. Enter the file paths of attachments to include with the email message, and then click OK.
Note: Attachment file paths represent file paths on the Workflow server machine, not local paths.
Enforce User PermissionsN/ACheck the Enforce User Permissions check box to use the permissions of the Workflow’s current user when invoking the method.
Tip: You can test the email configuration by selecting the Test/Debug tab and clicking Test.