2018.2

Table Of Contents
places them in a specific location on the drive. When a request is received, the SMTP Input
polls that location and finds the requests and all attachments. It will always pick up the "oldest"
request received.
Warning
Due to a technical limitation the SMTP Input task does NOT receive the BCC addresses
from most emails sent to it.
Processing
The task reads the incoming SMTP request and provides the data within its body.
Output
Depending on the Data Location option, the output is different:
l
Envelope: The request file in XML format, including all email fields (from, to, cc, bcc,
subject, body) as well as additional header fields (email client information, attachments,
etc). The message body and attachments are available through specific XML attributes.
These files do not have the full path, but you can use the %t%O variable to get the current
temporary folder where they are located.
Tip
Suppose we have two files named in the XML file under /ppemail[1]/@rawemail and
/ppemail[1]/body[1]/@html respectively.
With
%t%O\xmlget('/ppemail[1]/body
[1]/@html',Value,KeepCase,NoTrim)
and
%t%O\xmlget('/ppemail[1]/@rawemail',Value,KeepCase,NoTrim)
we get both the body and the whole raw email.
l
Attachments: The input task loops through each attachment and sends them down
through the process. While the Envelope is not available, the Job Infos contain pretty
much all of the information you would get from it.
Page 284