FME Flow: 2026.3

Email Subscriber

The Email subscriber receives messages from topics and delivers emails via the SMTP protocol.

Note  Email servers may have maximum connection limitations. When an email subscriber sends multiple emails to the same server in quick succession, this limitation may cause emails to be dropped. To fix this issue, adjust the MAX_WORKER_THREADS parameter in the email.properties file, located in <FMEFlowDir>/Server/config/subscribers, to a value at or below the corresponding value of the email server. For example, if the email server's connection limit is 20, lower MAX_WORKER_THREADS from 100 (default) to 20.

In the FME Flow Web User Interface, select Notifications > Subscriptions, and click Create.

Settings

  • Name: Specify a name for the subscription.
  • Protocol: Select Email.
  • Topics Subscribed To: Specify the Topics you 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.
  • Tip  To auto-populate some fields for common SMTP servers, click Load Template.
  • SMTP Server Port: Mail exchange TCP port used for sending email. If Connection Security (below) is SSL/TLS, specify port 465. If StartTLS or None, specify port 587.
  • 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 the STARTTLS command.
    • None: The connection is unencrypted.
  • SMTP Authentication: Specify the authentication method to use with the SMTP server:
    • Basic Authentication: Authentication with a username and password, provided explicitly.
    • OAuth Password Grant (Microsoft): Resource Owner Password Credentials (ROPC) authorization flow, based on the OAuth 2.0 protocol, and supported by the Microsoft identity platform.
    • OAuth Authorization Code (Microsoft): OAuth 2.0-based authentication via authorization code flow (grant), as implemented by the Microsoft identity platform .
    • OAuth Authorization Code (Google): OAuth 2.0-based authentication via authorization code flow (grant), as implemented by Google.
  • SMTP Account: The username of the SMTP account.
  • SMTP Password: If SMTP Authentication is Basic Authentication or OAuth Password Grant (Microsoft), the corresponding password for the username of the SMTP account.
  • Client ID: If SMTP Authentication is OAuth Password Grant (Microsoft), OAuth Authorization Code (Microsoft), or OAuth Authorization Code (Google), your Client ID for the specified SMTP Server, assigned when this application is registered with the OAuth identity provider.
  • Client Secret: If SMTP Authentication is OAuth Authorization Code (Microsoft) or OAuth Authorization Code (Google), your Client Secret for the specified SMTP Server, assigned when this application is registered with the OAuth identity provider.
  • Sign in with Microsoft/Sign in with Google: If SMTP Authentication is OAuth Authorization Code (Microsoft) or OAuth Authorization Code (Google), click to specify the SMTP account for authorization and provide that account with permission to authenticate with this subscriber on FME Flow.
  • Access Token: Auto-populated following successful completion of the Sign in with Microsoft/Sign in with Google process.
  • Refresh Token: Auto-populated following successful completion of the Sign in with Microsoft/Sign in with Google process.
  • Access Token Expiry: Auto-populated following successful completion of the Sign in with Microsoft/Sign in with Google process.
  • 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 are Plain Text, HTML, or Rich 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, see Email Template Language.

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 the Email Template setting.

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 attachment attachment.txt, to recipient@example.com (no cc's). The subject is This is a sample email. The message body of the email is Hello World. Replies to the email are delivered to sender@example.com.