Email Subscriber
The Email subscriber receives messages from topics and delivers emails via the SMTP protocol.
email.properties
file, located in<FMEFlowDir>/Server/config/subscribers
,一个值或低于相应的价值啊f the email server. For example, if the email server's connection limit is 20, lowerMAX_WORKER_THREADSfrom 100 (default) to 20.In theFME FlowWeb User Interface, selectNotifications > Subscriptions, and clickNew.
Settings
- Name: Specify a name for the subscription.
- Protocol: SelectEmail.
- Topics Subscribed To: Specify theTopicsyou want to subscribe to using the drop-down selector. To create a topic and use it right away, click+.
- SMTP Server: Mail exchange server domain name or IP address used for sending email.
-
Provider Server Gmail smtp.gmail.com Outlook smtp.live.com Office 365 smtp.office365.com Yahoo Mail smtp.mail.yahoo.com Mail.com smtp.mail.com AOL Mail smtp.aol.com Zoho Mail smtp.zoho.com Yandex smtp.yandex.com - SMTP Server Port: Mail exchange TCP port used for sending email. IfConnection Security(below) isSSL/TLS, specify port 465. IfStartTLSorNone, specify port 587.
- SMTP Account(optional): If the SMTP server requires authentication, this is the user name.
- SMTP Password(optional): If the SMTP server requires authentication, this is the user password.
- Connection Security: The encryption mechanism used for the connection.
- SSL/TLS: The connection uses Transport Layer Security (TLS), formerly Secure Sockets Layer (SSL), supported by most common SMTP email servers.
- StartTLS: An SSL/TLS connection with the email server is initiated using theSTARTTLScommand.
- None: The connection is unencrypted.
- Email To,Email Cc(optional),Email Bcc(optional): Corresponds to the To, CC, and BCC fields, respectively, in standard email messages. Separate multiple recipients with commas. For example:
recipientOne@example.com,recipientTwo@example.com,recipientThree@example.com
- Email From: Corresponds to the "From" field in standard email messages. If users reply to the notification email, it is directed to this address.
- Email Subject: Corresponds to the "Subject" field in standard email messages.
- Email Format: The format of the email. Options arePlain Text,HTML, orRich Text.
- Email Attachment(optional): Path to the source file to attach to the email.
- Email Body(optional): The message body to use for delivery. This is a template that allows the use of various tags that are replaced with dynamic information before delivery. For more information, seeEmail Template Language.
- Client ID(optional): For open authorization (OAuth) as a registered application with the Microsoft identity platform, specify the Application (client) ID. The client ID is created whenconfiguring an Azure Active Directory tenant.
Example
Mouse-over to see the full image:
Keywords
Using the following keywords, you can override the settings specified in the subscriber configuration:
- email_to
- email_cc
- email_bcc
- email_from
- email_subject
- email_replyto
- email_attachment
- subscriber_content: Overrides theEmail Templatesetting.
For example, consider the following JSON notification:
{
"email_to": "recipient@example.com",
"email_cc": "",
"email_from": "sender@example.com",
"email_replyto": "",
"email_subject": "This is a sample email",
"email_attachment": "\\\\\\myserver\\\\\attachment.txt",
"subscriber_content": "Hello World"
}
Upon receiving this notification, the email subscriber sends an email message, including attachmentattachment.txt, torecipient@example.com(no cc's). The subject isThis is a sample email
. The message body of the email isHello World
. Replies to the email are delivered tosender@example.com
.