Skip to end of metadata
Go to start of metadata

Introduction

NOTE: This plugin is deprecated. Instead, use the Cloud Studio Email connector or a Design Studio Email target. Also see Ways to Send Email.

The Send Email with Attachment plugin provides support for sending emails, with target files as attachments.

Global Variables

NameTypeRequiredDescription
SendEmail.HostStringRequiredThe SMTP server.
SendEmail.SSLBooleanOptionalThe SSL usage.
SendEmail.UserNameStringOptionalThe user name required by the SMTP server for authentication. Does not have to be provided if the server does not require a user name.
SendEmail.PasswordStringOptionalThe password of the user. Does not have to be provided if the server does not require a password.
SendEmail.PortIntegerOptionalThe port used by the SMTP server.
SendEmail.ToStringRequiredThe recipient's email address.
SendEmail.CCStringOptionalA comma-separated list of CC email addresses.
SendEmail.FromStringRequiredThe sender's email address.
SendEmail.ReplyToStringOptionalThe reply-to email address. If not specified, SendEmail.From will be used as reply-to.
SendEmail.SubjectStringOptionalThe message subject (optional).
SendEmail.TextStringOptionalThe message text (optional). If the message text starts with <html>, the email will be sent with the text/html content type.
SendEmail.AttachmentName[_N]StringOptional

Since this plugin is used pre-target, the target files still have the temporary names that they are given by the Harmony Agent in the operation. (The files will be given their "real" names, as defined by the operation's target, once they are moved to the target location.)

If you want to set your own names of the attached files you can do so by setting this data element. If there is only one target file, use SendEmail.AttachmentName to set its name. If there are more than one target files, use SendEmail.AttachmentName_2, SendEmail.AttachmentName_3, etc., to set the names of the second, third, etc. file.

SendEmail.OneAttachmentPerEmailBooleanOptionalControls the behavior if more than one attachment file is to be sent. If the value of this data element is TRUE, one email per target file will be sent. If the value of this data element is FALSE, all target files will be attached to a single email. The default value of this data element is FALSE.
SendEmail.SendIfNoAttachmentsBooleanOptionalControls the behavior if there are no target files. If the value of data element is TRUE, an email without attachments will be sent. If the value of this data element is FALSE, no email will be sent. The default value of this data element is FALSE.
SendEmail.LogLevelStringOptionalSets the logging level for this plugin. Logging is turned off by default. The value should be one of the built-in levels defined by java.util.logging.Level. On Private Agents, the plugin log can be found under the directory <JITTERBIT_HOME>/log/plugin/.
SendEmail.RetriesIntegerOptionalSet to the number of times you want to try sending the email if the initial attempt fails. The default is to not try to send it after an initial failure.
SendEmail.RetryWaitSecondsIntegerOptionalSet to the number of seconds to wait between each retry attempt. Used only if SendEmail.Retries is greater than 0. The default is to wait one minute (60 seconds) between retries.

Last updated:  May 19, 2021