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

This Task sends email with possible file attachments fetched from given path(s).

Input Parameters

Parameter nameDescriptionExample value
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 foundChoose if email should be sent, even if no attachments were found.false
File attachments

A collection of attachment file paths.

Parameter nameDescriptionExample value
File path

Path to file or folder of attachment(s). Wildcard usage is allowed.

  • Attach single file: "C:\attachments\singlefile.txt"
  • Attach all files with '.txt' extension: "C:\attachments\*.txt"
  • Attach all files in attachments folder: "C:\attachments\"
"C:\email\attachments\*.txt"