on 05-06-2009 6:21 PM
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
Its not yet resolved but trying to create an RFC and send email via ABAP stack
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
btw: It should be:
Content-Type: text/plain; name=Testing.txt
Content-Disposition: attachment; filename=Testing.txt
But it works for me anyway.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.