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 theEmail Serviceparameter. Parameters for eachEmail Serviceare 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:

AmazonSimple Email Service(SES):

Parameter

Value

Host email-smtp..amazonaws.com
Port 587
Encryption TLS
Sender Authentication Yes
Sender's Username
Sender's Password

Substitute your region forin theHost. For example, if your AWS region wasus-east-1, then your host would beemail-smtp.us-east-1.amazonaws.com

Google Gmail:

Parameter

Value

Host smtp.gmail.com
Port 587
Encryption TLS
Sender Authentication Yes
Sender's Username
Sender's Password

Note that using Gmail to send SMTP messages requires you to have to disable security on your Gmail account by following the instructions athttps://www.google.com/settings/security/lesssecureappsand therefore is not recommended. Using theGmailoption for theEmail Serviceparameter is preferred, since this will authenticate using OAuth 2.0, as recommended by Google.

Insecure Relay:

Parameter

Value

Host
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 theFeatureWriterto either send statistics of the translation, or in fact the output of the translation, via email. TheTempPathnameCreatortransformer 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, clickbeside the applicable parameter. For more information, seeTransformer 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 theFME Community.