Receiver Mail Adapter - Mail body as attachment
Hello friends,
I have scenario = File -> XI -> Mail
The scenario is working but the problem is body of the email is coming as attachment in the mail client.(outlook express)
Is there any way to avoid the body coming as attachment.
Regards
Ramesh P
Hi Ramesh,
You can use the MessageTransformBean in the receiver mail adapter for this.
Refer this for the parameters which you can use
http://help.sap.com/saphelp_nw04/helpdata/en/57/0b2c4142aef623e10000000a155106/content.htm
Regards,
Chandra
Similar Messages
-
Receiver Mail Adapter message with PDF attachment
Hi.
We are trying to generate emails from the mail adapter that includes the plain text in the body of the resulting email and an attached PDF file. We receive the following structure:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:newMailRequest_MT xmlns:ns0="http:/pdk/sap/TorstenTest">
<Sender/>
<Receiver/>
<BodyContent/>
<Subject/>
<Attachment/>
</ns0:newMailRequest_MT>
I have set up an interface and mail adapter to be able to produce emails with plain text in the body. I used SAP note 748024 for this.
So right now I can make XI send emails with dynamic mail addresses. My problem lies in sending attached files with the mails as well.
I have read most of the threads in here, but none of them seem to answer just how to include the attachment. Which field in the 'Mail' message type is used for the attachment??
What needs to be added to the communication channel and adapter for it to include attachments, while the body of the mail still keeps the plain text message??hi
I have used the following links to send the file as an attachement and as payload.
so it may help u.
links:
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure - Mail Adaptor options , mail attatchment
Sender mail adapter - PayloadSwapBean - Step by step - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
points if helpful.
regards
sreeni -
Receiver Mail Adapter, Mail Package with Payload as Attachment
Hi Everyone,
I have spent the better part of the day today searching and testing all of the different combinations that I could think of to solve this problem, so please don't just do an SDN search for me and cut/paste in the links as there are too many contradictive answers piling up over the last year.
I am trying to use a Receiver mail adapter to send some data using the mail package, and I want to have the <content> tag be in an attachment. I am using mail package to dynamically set the mail address, but to also try and turn my data into a csv file that the recipient can open in Excel.
My mail package sets the following values:
<Content_Type>text/plain</Content_Type>
<Content_Disposition>attachment</Content_Disposition>
<Content>Sample Text</Content>
This blog is basically what I am trying to do:
<a href="/people/community.user/blog/2006/09/08/email-report-as-attachment-excelword:///people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
But no where in here is he setting ContentDisposition, and he is (potentially) not using the MessageTransformBean module.
It is unclear if I need to use the MessageTransformBean to make this work?
Questions:
1) Do I need to use the MessageTransformBean?
2) Do I need to set the ContentDisposition in the mail package?
3) Does Service Pack matter with these settings? We are on SP15 upgrading to SP18 very soon.
Thanks
PeterHi Peter,
try:
<Content_Type>text/plain;name="file.csv"</Content_Type>
<Content_Disposition>attachment;filename="file.csv"</Content_Disposition>
<Content>Sample Text</Content>
Regards
Stefan -
Sender Mail Adapter - html body mail
Hello Everybody,
I'm facing this strange problem:
I receive an e-mail with an XML attachment with a sender mail adapter and I use the PayloadSwapBean to let the attachment be the real payload as explaned in this 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
If I receive mail in text/plain format everything works fine, but as soon as I get an email with an html body (content-type: multipart/alternative; boundary=...) it doesn't any more (In the XI Monitor i still se 2 payloads, but I can only open the one with the attachment).
In this case the mapping is stuck in "scheduled for outbound process" status and the XI queue gets blocked with status "SYSFAIL" giving this error "Access via 'NULL' object reference not possible".
Is there any way to force XI digest also HTML e-mails?
As always, thanks a lot for your help.
DanieleThanks Akshay,
this really worked!
Fyi I'm using XIPAYLOAD option. I added in the module chain, before the PayloadSwapBean, a MessageTransformBean with this parameter:
Transform.ContentType - text/plain;charset=uft-8
this way I can also see the massage body in the monitornig.
Hope this will be helpful for someone else.
Regards,
Daniele -
XI Mail Adapter TXT file as attachment
Hi, I am using Mail Receiver adapter to receive data from Sender ABAP Proxy.The attachment file contains data with all Labels, i used in the Target Message Type.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:XogisticsOB_MT1 xmlns:ns0="http://selectcomfort.com/sapcrm/xogistics/outbound"><HEADER1000><EDI_HEADER_STR></EDI_HEADER_STR><TASK_ID>8000001959</TASK_ID><TOT_BOXES> 1</TOT_BOXES><NAME_LAST>Di Capri</NAME_LAST><NAME_FIRST>Sheela</NAME_FIRST>
Please let me know how can i exclude these labels such as
<HEADER1000> </HEADER1000> , <TASK_ID></TASK_ID>,
<NAME_LAST></NAME_LAST> etc...
from appearing in the File Content.
The ModuleKey contains
Transform.ContentDisposition attachment;filename="Outbound1.txt"
Transform.ContentDescription Outbound1
Transform.ContentType text/txt;name="Outbdound1.txt"
Thanks.
RushikeshHi,
If ur using the mail adapter as receiver then if u dont use mail package then the attachment will come as it is file.
If u use mail package then it will come in XML format
for reference please check some links.
Receiver Mail Adapter.
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
eMail Reporting
eMail Report as Attachment (Excel/Word)
The specified item was not found.
The specified item was not found.
The specified item was not found.
Regards,
Phani -
XI Mail Adapter: Sending an XML attachment
Hi
I want to send an xml attachment using the XI Mail adapter. I have configured the adapter correctly and am currently receiving the email message.
My issue is that my attachment has a .txt extention and I want it to have a .xml extn.
I have seen a variety of web blogs around but none of these have helped.
I have also changed my configuration from XIPAYLOAD to XIALL and still cannot get my payload message as a .xml attachment.
When I config my adapter to use XIALL i get 2 attachments, a SOAP.xml and the my payload wiht the filename:
[email protected]
When I use XIPAYLOAD, with the keep attachment option ticked, I get an attachment with a .txt extn.
I am convinced there must be a J2EE setting or maybe a ABAP config paramter that I need to update to get the .xml extn.
Any help is greatly appreciated.
Regards
YackeenHi Yackeen,
You can use localejbs/AF_Modules/MessageTransformBean
You have to set the parameter :
Transform.ContentDisposition as
attachment;filename=myFileName.xml>
Best regards,
Bela -
Sender mail adapter - filter emails by attachment?
Dear experts,
I have a sender mail adapter that picks an XSL (EXCEL) attachment from an incoming email and converts it (with a custom adapter module) to XML.
But now how can I make the adapter only process emails with XLS - attachments? In that Inbox I also have emails with HTML-attachments for example. And now my adapter also wants to process those messages.
In my adapter module that makes XLS to XML I see an exception in RWB but the message still gets through to SXMB_MONI where it gets stuck with a red flag.
Can I somehow tell the adapter to only process emails with XLS attachments?
Or can I stop the processing in the adapter module that converts XLS to XML?
Thank you for any input or ideas on this!
Best regards,
Peter
PS: I am using this code to convert XLS to XML:
http://wiki.sdn.sap.com/wiki/display/ABAP/AdapterModuleToReadExcelFilewithMultipleRowsandMultiple+ColumnsHello ChizzT,
Thank you for your idea. I went with this one and it worked.
Best regards,
Peter -
XI Mail Adapter: sending emails with attachment with help of java mapping
Hi ,
On trying out the scenerio mentioned in the blog, using the java mapping provided
"XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping
The scenerio works just fine.
But the payload as the content of the attachment is not getting generated in proper XML format.
I suppose it's because of the replace special characters code part..
Can anyone help me state the modification required in the code.
Thanks!
Regards,
Faria MithaniIt might be a codepage issue. Is your original payload UTF-8?
-
Mail adapter - content coming as attachment
Hellow experts,
I am sending data from R3 to emails using mail adapter. I am using the follwoing mail package format.
<?xml version="1.0" encoding="UTF-8" ?>
<ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
<Subject>Water Catchment Form</Subject>
<From>[email protected]</From>
<To>[email protected]</To>
<Reply_To>[email protected]</Reply_To>
<Content_Type>text/plain</Content_Type>
<Content>You have work order(s) !!</Content>
</ns1:Mail>
In my mail adapter, I have ticked
Use Mail Package Format and
Keep Attachments
I am getting the content as an attachment - I want it inside the email.
The attachment is coming with a name Untitled.pdf - I need the actual name.
Am I missing anything?
What can I do to get things right?
ThnxHi Sabbir
refer this Pdf may be helpful for u
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
Thanks!! -
Receiver Mail adapter - mail package - mail not received
Hi guys!
I'm using receiver mail adapter and when I want to use Mail Package (subject is assign dinamically based on mapping) I do not receive the e-mail. When I switch to not using Mail Package, the mail is sent correctly..
In RWB everything seems to be ok, it says mail sent successfully... just not to my outlook
Any ideas, what could be wrong?
Thanx a lot!
OlianHi Stefan,
thank you 4 reply.. I checked it. To be sure - I copied the content of the To tag and put it into my Outlook and sent an e-mail... It has arrived
I can't understand this..
Which fields are neccessary to fill? Is from, to and content enough? I think it should be...
Thank you!
Olian -
Mail Adapter & Mail package - pb of content
Hi,
I want to send an email from XI to my mail server (Lotus) by using the Mail Adapter with option "Use mail package".
I have just succeed to send email with only <b>ONE line</b> because of field "content" which has an occurence 0..1.
How is it possible to have several lines?
When I try to duplicate field "content" or to change its occurence (0..Unbounded), then I don't receive an email?
<i>Note: Unfortunatelly, I don't know XSL / XSLT mapping.</i>If you want to have several lines, you have to put EOL within the one "content" tag like this:
<ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
<Subject>Hello</Subject>
<From>[email protected]</From>
<To>[email protected]</To>
<Content>row1
row2
row3
row4</Content>
</ns:Mail>
Sorry, I can only give you an XSLT example to do this. Assume your original message payload is:
<root>
<text>row1</text>
<text>row2</text>
<text>row3</text>
<text>row4</text>
</root>
you can use following XSLT file, which you attach directly to the Mail Adapter (like described in another thread):
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" />
<xsl:template match="*">
<ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
<Subject>Hello</Subject>
<From>[email protected]</From>
<To>[email protected]</To>
<Content><xsl:apply-templates/></Content>
</ns:Mail>
</xsl:template>
<xsl:template match="text">
<xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
Regards
Stefan -
Receiver Mail adapter - Text as a attachment
HI folks,
These are my screen shot link of my receiver CC
http://farm4.static.flickr.com/3279/2946574549_aa08b8464c_o.jpg
http://farm4.static.flickr.com/3063/2946575933_e8689c240d_o.jpg
In my receiver Communication channel,
I mentioned these parameters also,
From : xxxxATxyz.com ( i could not at the rate symbol ..bec it considers as a email)
to : sapATmye.com
subject: test
Content encoding: none
I am mailing with in network only
I could get email in my receiver (sapATmye.com ) inbox but only i am getting message in text format only.
I could not get as a the attachment.
I want the output in text format as a attachment
My advanced thanks for the inputs.
Thanks
PrabaharanHI Gaurav,
I am getting the error ( i tried like as u said) . even i tried that way before also ( i got the same error)
I am getting the error RWB , CC monitoring,
Message processing failed. Cause: com.sap.aii.af.modules.conversion.xml2plain.ConversionException: Insufficient number of fields read for structure SalesEmployee. Expected 4, got 3 at XML element MT_Receiver,SalesEmployee
Even link for Receiver CC
http://farm4.static.flickr.com/3289/2947598091_6dc5423a82_o.jpg
I do not know why i am getting this kind of error even though,
i mentioned SalesEmployee.fieldLengthExceeded ; = ignore
in my receiver message type 2 attributes has occurence as 1 to unbounded, another 2 attributes occurence as 0 to unbounded
Thanks
Praba
Edited by: Prabaharan on Oct 17, 2008 3:04 AM -
Send a mail with a body and attachment
Hi guys!!!!
I have a RFC -> XI -> Mail Scenario!
I'm able to send text in the body of the mail. I'm able to send text as an attachment. But I'd like to send both (text in the body and other text as an attachment). How can I do this?
thanks in advance
JulioFirst, I'd like to thank all the replies! And Jagesh, I solved my problem reading the thread you told me.
I created a message as follow:
<?xml version="1.0" encoding="UTF-8"?>
<ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
<Subject>test</Subject>
<From>test_source @ abc.com</From>
<To>test_target @ abc.com</To>
<Content_Type>multipart/mixed; boundary="AaBb--984dfgeSSd3532"</Content_Type>
<Content>*AaBb984dfgeSSd3532*
Content-Type: text/plain
Hello, this is sample data.
*AaBb984dfgeSSd3532*
Content-Type: text/plain;name="CSV_data.csv"
abc
</Content>
</ns:Mail>
In addittion to this, I configured Mail channel as follow:
Content encondig = none
Keep Attachments = false -
Receiver File Adapter fails saving an attachment
Dear XI/PI experts. I have a file to file scenario where I send a XML message with PDF attachment. I am using Additional Files configuration in the Sender adapter. I can monitor that the attachment goes succesfully through Xi runtime environment and to Adapter Engine. Even there I can monitor that the attachment is with the xml message when the saving is done but only main payload, xml message is saved to disk. No errors, pdf file just do not appear in the folder, Is there any extra configuration needed to be done e.g Module configurations in Receiver adapter?
well the reason i can think of is that the receiver system is not capable of handling XML message with attachments.
have a look at the help.sap document and see all the constraints and if all the conditions are met
http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/frameset.htm
Thanx
Aamir -
Outbound Mail Adapter Mail Package
Hi there,
I have a problem in a XI-Scenario.
There is an incoming mail with a CSV-File as an attatchemant.
It s transformed by an itemfield-module into xml-soap.
Then the message is mapped and end to a sap-hr via rfc.
This is how far it works.
my problem is, that i need the emailheaddata, and i dont know how to get it. The atribute 'use mail package' is activated. but how can i reach the information from the mail package in the mapping where i need the information about the sender?
best regards
Harald Cremerhi,
if you won't be able to do it in amy other way try this:
create an adapter module in which you will
get the header data
and put it into the dynamicconfiguration
then you will be able to get it from your mapping
easily
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>
Maybe you are looking for
-
How to get the r,g,b value of a pixel in a picture
Hi, there How can I get the integer value of the r, g, b value of a pixel in a picture. This picture is loaded from a file, such as jpg or gif. That means the absolute position of the left corner of the picture may be float when you change the size o
-
I have Windows XP and downloaded Firefox 4.0.1. After it was installed 5/7/11, I noticed all my Yahoo search bar apps were missing. Rebooting did not help. Neither did the "gear" on the toolbar next to the yellow Yahoo search box. Internet Explorer b
-
What does the inspector settings have to be for the second page to be seen on my website
My second page can not be seen on my web page. Could this be a setting in my Inspector. What setting do I need in the Inspector to get my second page to show on my web page?
-
I recieve emails from a IP Webcam. When I look at them via the iPhone all the pics are the same across emails. If I delete all of them then receive a new one I get then new pic. But thats the only one I can see in every new email. If I use a third pa
-
Implementation of double byte character in oracle 10.2.0.5 database
Hi experts, There is an oracle 10.2.0.5 standard edition database running on windows 2003 platform. The application team needs to add a column of the datatype double byte (chinese characters) to an existing table. The database character set is set to