Try OpenEdge Now
skip to main content
Managed Adapters Guide
Email Managed Adapter : Using the Attachment plug-in
 

Using the Attachment plug-in

You can use the Attachment plug-in available in the Email Managed Adapter to attach a file to the e-mail message. The Attachment plugin allows the following mappings:
Table 14. Mappings Supported by the Attachment plug-in
Mapping type
Components
Document dataslot
The selected dataslots are used to supply the attached document.
CHARACTER dataslot
The CHARACTER dataslot should contain the location of the file on the local (appserver) file system. The file is loaded and attached to the email message.
Constant
If every message has the same attachment, and the attachment is present on the local (appserver) file system, you can directly type in the map configurator dialog the fully-qualified name of the file
If you want to attach more than one attachment, you can use the "Attachment" plugin several times in the same message.
Note: You cannot use the Email adapter to send multiple file attachments stored in a bundle Document dataslot.
To send an attachment with the e-mail message:
1. Double-click an Email Adapter workstep to open its Properties view. Open the Configuration tab and click Configure to open the Email Adapter Configurator dialog box.
2. Click Add to add a new part to the message. Select Attachment from the options in the enabled cell in the Format Plugin column.
3. Each plugin has a default MIME type, which is displayed in the Data Type column. The default data type for an Attachment format plug-in is a ZIP archive. If you know in advance what kind of file the attachment contains, click the cell in the Data Type column and enter the corresponding MIME type. For description of the data type used for each MIME type, refer to the Mime types topic.
The Attachment plugin does not require any more configuration at this stage, so no sub-tab for the Attachment part appears in the Message Body tab. However, when the dataslot is mapped, you must define an adapter input (example, named "Attachment") that can be mapped to a dataslot or a constant.
* Mime types