KB Article #182687
[SMTP] Add email payload as attachment or body
By default B2Bi sends payloads as attachment in an email message. The payload can be sent as inline body if needed by setting the attribute
PayloadLocation with a value 'body'.
Allowed values are "body" or "attachment"
Body part must be a text data and possible choices for encoding are text/plain or application/xml. B2bi does not support text/html body parts.
The above options aply to generaic email only. For AS1 the payload is always sent as attachment regardless of PayloadLocation attribute value.
Optionally you can add a payload as attachment and a body text describing the payload. It is possible with pickup trough MMD file. Here is an example MMD to pickup the body text and the attachment:
<?xml version="1.0" encoding="UTF-8"?>
<MessageMetadataDocument protocol="generic" protocolVersion="1.0">
<Metadata name="From">SenderRoutingID</Metadata>
<Metadata name="To">ReceiverRoutingID</Metadata>
<Metadata name="SubjectHeader">Email Subject</Metadata>
<MessagePayloads>
<Payload id="1" packagingLocation="Body">
<MimeContentID>1</MimeContentID>
<MimeContentType>text/plain</MimeContentType>
<Location type="filePath">localpath</Location>
</Payload>
<Payload id="2" packagingLocation="attachment">
<MimeContentID>2</MimeContentID>
<MimeContentType>application/xml</MimeContentType>
<Location type="filePath">localpath</Location>
</Payload>
</MessagePayloads>
</MessageMetadataDocument>