Emailer

Sends one email per input feature via Simple Mail Transfer Protocol (SMTP). Both HTML and Plain Text emails may be sent, each with one or more attachments.

To use this transformer, a server that accepts SMTP requests must be available and the connection parameters and authentication fully specified.

Input Ports

Output Ports

Parameters

Addressing

Message

Service

Connection

The connection parameters available depend on the value of the Email Service parameter. Parameters for each Email Service are detailed below.

SMTP Connection Parameter Examples

To send an email, the host name, receiving port, and encryption method must be specified. Each of these is described above. Consult your system administrator for the settings you should use for the SMTP server parameters, but as a starting point, here are the settings for several common SMTP servers:

Amazon Simple Email Service (SES):

Parameter

Value

Host email-smtp.<region>.amazonaws.com
Port 587
Encryption TLS
Sender Authentication Yes
Sender's Username <your SES-generated username>
Sender's Password <your SES-generated password>

Substitute your region for <region> in the Host. For example, if your AWS region was us-east-1, then your host would be email-smtp.us-east-1.amazonaws.com

Google Gmail:

Parameter

Value

Host smtp.gmail.com
Port 587
Encryption TLS
Sender Authentication Yes
Sender's Username <your Gmail address>
Sender's Password <your Gmail password>

Note that using Gmail to send SMTP messages requires you to have to disable security on your Gmail account by following the instructions at https://www.google.com/settings/security/lesssecureapps and therefore is not recommended. Using the Gmail option for the Email Service parameter is preferred, since this will authenticate using OAuth 2.0, as recommended by Google.

Insecure Relay:

Parameter

Value

Host <your hostname>
Port 25
Encryption None
Sender Authentication No

You may have an in-house relay available to you. Default settings such as the above may work in such a case, but these are not recommended for a production system.

Usage Notes

This transformer is often used to notify recipients of translation status. It is often used downstream from the FeatureWriter to either send statistics of the translation, or in fact the output of the translation, via email. The TempPathnameCreator transformer may be useful in such workflows.

Editing Transformer Parameters

Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.

Defining Values

There are several ways to define a value for use in a Transformer. The simplest is to simply type in a value or string, which can include functions of various types such as attribute references, math and string functions, and workspace parameters. There are a number of tools and shortcuts that can assist in constructing values, generally available from the drop-down context menu adjacent to the value field.

Dialog Options - Tables

Transformers with table-style parameters have additional tools for populating and manipulating values.

FME Community

The FME Community is the place for demos, how-tos, articles, FAQs, and more. Get answers to your questions, learn from other users, and suggest, vote, and comment on new features.

Search for samples and information about this transformer on the FME Community.