cancel
Showing results for 
Search instead for 
Did you mean: 

attachment in email adapter no CRLF

AntonioSanz
Active Participant
0 Kudos

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-buildin...

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><...; 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???

Accepted Solutions (0)

Answers (2)

Answers (2)

iaki_vila
Active Contributor
0 Kudos

Hi Antonio,

All depends if you are in Unix or windows.

Please read carefully this thread http://scn.sap.com/thread/1939264

Regards.

markangelo_dihiansan
Active Contributor
0 Kudos

Hello Antonio,

Can you try using notepad++ instead of notepad and tell us what happens?

Regards,

Mark

AntonioSanz
Active Participant
0 Kudos

I am getting this:

LINEA1(LF)

LINEA2(LF)

LINEA3(LF)

LINEA4(LF)

(LF)

(CR)(LF)