cancel
Showing results for 
Search instead for 
Did you mean: 

Extra Control Char in Multi-Part Message of Mail Attach. using Mail Adapter

Former Member
0 Kudos

Hi All,

I am using the following structure to send my content. Everything is right except the problem with some junk characters at the end of the file in the attachment. May I know how to get rid of them?

<ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">

<Subject>Testing MultiPart</Subject>

<From>From Add</From>

<To>To Add</To>

<Content_Type>multipart/mixed; boundary="--AaZz"</Content_Type>

<Content>

-


AaZz

Content-Type: text/plain; charset=UTF-8

Content-Disposition: inline

This is a system generated mail. Do not respond

-


AaZz

Content-Type: text/attach; name=Testing.txt

Content-Transfer-Encoding: 7bit

Content-Disposition: attachment; name=Testing.txt

TEST VALUE1

TEST VALUE2

</Content>

</ns1:Mail>

I have used values 7bit,8bit, base64, US-ASCII in the parameter Content-Transfer-Encoding. But nothing seems to be working.

Can anyone please help?

Thanks,

Geetha

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Its not yet resolved but trying to create an RFC and send email via ABAP stack

stefan_grube
Active Contributor
0 Kudos

btw: It should be:

Content-Type: text/plain; name=Testing.txt

Content-Disposition: attachment; filename=Testing.txt

But it works for me anyway.

stefan_grube
Active Contributor
0 Kudos

It works for me. You can use 7bit are do not provide the whole line.

What junk characters do you see? What PI version do you use?

Regards

Stefan

Former Member
0 Kudos

Hi Abhishek,

I am not using any new line at the end of the content. I dont understand why still I am getting the junk characters.

Thanks,

Geetha

former_member200962
Active Contributor
0 Kudos
Everything is right except the problem with some junk characters at the end of the file in the attachment.

what junk character you are getting.....normally if you get a junk character at the end of the file then it can be a newline....check if you have a nl command in your mapping which is not executing properly...

Regards,

Abhishek.