Data Transformation Engine E-Mail Adapter Reference Guide
Chapter 3 - E-mail Commands  List of Commands 
E-mail Adapter Reference Guide 
10 
Attachment (-ATT or -ATTACH) 
The Attachment adapter command (-ATT or -ATTACH) processes message 
attachments. When used for a data source, you can read attachments instead of 
the note text. In this case, 
filename must be omitted. 
When used for a data target, this command changes the location of data supplied 
through the map from the body of the e-mail to a file attachment with the name 
specified by 
filename. For example, if the map rule is the text literal Hello 
World, the body of the e-mail contains “Hello World”. If you then enter -att 
sample.txt for the Target > PUT > Target > Command in the output card, 
the text literal 
Hello World will appear in the attachment as a text file with the 
name sample.txt; the body of the e-mail will be empty. 
-ATTACH filename 
Option Description 
filename 
For data targets only, supply the name of the 
attachment file. For data sources, omit this option. 
To generate the name portion of the attachment’s 
filename using the adapter, supply a filename in 
extension-only format (using a dot-three-letter name 
such as .
ext). 
Multiple Attachments 
The -ATTACH command only supports a single attachment. If you are using 
Internet mail (
-PROTO INET) and multiple attachments need to be sent or 
received, you can accomplish this by chaining the MIME adapter with the e-mail 
adapter, and using the 
-RAW option of the e-mail adapter to map the MIME header 
fields. 
An example of a map that sends and receives multiple attachments is provided in 
the map source file emailatt.mms in the examples\adapters\mime directory. 
Click Start > Programs > Mercator version number > Design Studio > 
Examples and navigate to Resource Adapters > MIME to consult the 
readme.txt file in this directory for more information on this example. 










