on 08-02-2007 11:36 AM
Hi @ all,
I have some problems dealing with xml attachments on emails. I configured the email sender adapter by using Michals Blog
<a href="/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step:///people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
Unfortunately the mail header looks different as the one in the blog:
<b>Content-ID: <payload-0db7d41440e211dc89b8001185eb2336@sap.com>
Content-Type: application/octet-stream;name="payload-485025582FE6584FA25FBF8F540E7D46@sap.com.xml"
Content-Disposition: attachment;filename="MailAttachment-1.bin"
Content-Description: MailAttachment-1</b>
What can I do to make it look like in the blog?
thanks and Regards.
Oliver.
As your SMTP header looks like an email coming from the mail adapter, are you really talking about sender adapter? Du you send an email from XI to XI?
As swap.keyname you could use Content-Disposition and as swap.keyvalue you could use MailAttachment (any substring of the value in the header)
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm, yes I think our partner which is sending the emails has an XI, as well.
No matter, now the attached file (IDOC) was transferred properly to my R/3. I had to change the receiver agreement from IDOC to the mail format. But this yields my next problem. How does the mapping has to look like? I cannot map the mail format to IDOC. Or do I have to create my own message type where mail header and IDOC are included?
Regards.
Oliver.
If the partner sends an ownknown format or you request a spam mail, you reject or resend the mail. Build a receiver determination based on the field IDOC to ensure that you have received an IDOC format, otherwise send the message to an alternative receiver.
The point is: If the format is unkonown, there is no mapping you could do.
Regards
Stefan
Hi,
As in yr case the content-Dispostion is in .bin
<i>
Content-Disposition: attachment;filename="Content-Disposition: attachment;filename="MailAttachment-1.bin""</i>
So use keyvalue - "MailAttachment-1.bin"
Regards
Vikas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Also See These
/people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping
/people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
Regards
Khanna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Can you please recheck if you have given the same parameters as specified in the blog.I have done this scenario.Initially we also faced some problems, then later it worked.
Let us know more about your case.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try With the Following Blogs
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
Reward Points if Helpful
Regards
Khanna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
you need to use Michal's help hehe:)
did you use .xml in keyvalue as shown ?
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I did everything exactly as in the blog. I put .xml and quoted it by " ". The only mistake I found was that the new module was not at first position. I switched this and tried again but the message header looks still the same.
I guess the problem is that the content-type is not text/xml but application/octet-stream instead. So the module cannot work properly.
Regards.
Oliver.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.