Skip to Content
0
Former Member
Mar 12, 2010 at 03:49 AM

Send email with Attachment and Message in Body

39 Views

Hi All,

I'm sending an email (Receiver Email Adapter) with a Zipped CSV file as an attachment. I used the following modules to achieve this.

1 localejbs/AF_Modules/StrictXml2PlainBean Local Enterprise Bean strict2plain

2 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean contentType

3 localejbs/AF_Modules/TextCodepageConversionBean Local Enterprise Bean Transform

4 localejbs/AF_Modules/PayloadZipBean Local Enterprise Bean zip

5 sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail

Transform Conversion.charset ISO-8859-1

contentType Transform.ContentDispostion attachment;

contentType Transform.ContentType text/plain;charset="UTF-8";name="Attachment.csv"

contentType Transform.Description file

strict2plain DATA.endSeparator \r\n

strict2plain DATA.fieldSeparator ,

strict2plain fieldNames Result

strict2plain recordTypes DATA

zip zip.filenameKey contentType

zip zip.mode zipAll

My problem now is how to put text content in the body? Please help.