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.
- Click Configure Method to select a call method. See Configure Parameters for a Call Method for more information.
- Enter or edit values as shown in the table below, and then click Save.
- Click Run () to run Workflow and the configured call method.
Inputs | Data Type | Description |
---|---|---|
Recipient Emails | String[] | 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 Resources | IEnumerable<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. |
Sender | DirectoryResource |
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. |
Subject | String | Specifies the subject heading of the email being sent. |
Body | String | Specifies the body of the email being sent. |
Attachments | String |
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 Permissions | N/A | Check 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.