FRENDS⁴ Common Components : FRENDS.Common.Services.EmailServices.SendEmailWithFileContentAsAttachment

This Task sends email with possible attachment(s) created from given file content and file name.

Input Parameters

Parameter nameDescriptionExample values
To

Recipients address. For multiple recipients, separate addresses with "," (comma) or ";" (semicolon).

"john.doe@domain.com, jane.doe@domain.com"

From

Sender email address.

"jane.doe@domain.com"
Subject

Email subject value.

"You are my subject"
Message

Email message value.

"You've got mail"
Smtp server

SMTP server name.

"smtp.somedomain.com"
Port

SMTP server port.

25
Use windows authentication

Sets if windows authentication is used (uses FRENDS 4 agent account). If false, set user name and password parameters.

true
User name

SMTP server user name value. Used if Use windows authentication is set to false.

"doejohn"
Password

SMTP server password value. Used if Use windows authentication is set to false.

"mypassword"
Send if attachments not foundDecide if email is sent, even if no attachments are set. 
Attachments

A collection of file contents to be added

Parameter NameDescriptionExample value
File contentContent from where the attachment file is created. If content is empty, attachment is not created."<root><value>I am attachment files content</value></root>"
File nameThe name of the attachment file"myattachmentfile.xml"