Skip to Content
0
Apr 17, 2012 at 10:14 AM

attachment in email adapter no CRLF

41 Views

Hi all, I am using this blog ir order to send a txt flat file as an attachment in an email.

http://scn.sap.com/people/samuel.chandrasekaran2/blog/2008/10/06/xi-mail-adapter-dynamically-building-attachment-and-message-body-content-using-a-simple-udf

I can send the attachment without problems, but If I download to attachment (.txt file) and open it with notepad I can not see carriage returns. All the information is in the same line.

If I test the mapping in mapping desinger I get for instance:

<ns1:Mail xmlns:ns1="multipart/mixed" _mce_href="http://sap.com/xi/XI/Mail/30"><Subject></Subject><From></From><To></To><Content_Type>multipart/mixed">http://sap.com/xi/XI/Mail/30"><Subject></Subject><From></From><To></To><Content_Type>multipart/mixed; boundary = --AaZz</Content_Type><Content>----AaZz
Content-Type: text/plain; charset=UTF-8
Content-Disposition: inline

CUERPO
----AaZz
Content-Type: application/text; name=TEST.TXT
Content-Disposition: attachment; filename=TEST.TXT

LINE3
LINE2
LINE3

</Content></ns1:Mail>

Any idea about what can be happening???