Configuring Receiver mail adapter with dynamic email addresses
Hi,
I'm a newbie to XI and I have problems in configuring the Receiver mail adapter with the "Use Mail package" option selected. I am trying pickup a file (using file adapter on Sender side, picks up a simple XML file) and after mapping in XI, send the message as an email message to dynamic email addresses.
Everything works fine if I did not select the "Use Mail Package". But when I choose that option it errors out. I followed this blog posted on SDN -
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
The following XML message is my source
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/Somenamespace">
<ns0:Message1>
<ns1:studentlisttest xmlns:ns1="urn:karthiksender_to_karthikreceiver">
<Student>
<studentid>1</studentid>
<lastname>Studentlastname</lastname>
<firstname>Studentfirstname</firstname>
</Student>
<Mail>
<From>[email protected]</From>
<To>[email protected]</To>
<Subject>Test mail adapter</Subject>
</Mail>
</ns1:studentlisttest>
</ns0:Message1>
</ns0:Messages>
What I want to accomplish is, I have a simple message mapping where the Studentdetails are mapped to, lets say Customer details. For convenience lets keep it simple, StudentId --> Customerid, (student)Firstname --> (customer)Firstname, (Student)Lastname --> (customer)Lastname
I would like to get the Customer details as an XML attachment or in the body of an email with from, to and subject corresponding to that specified in the <Mail> node.
I followed the instructions posted on the blog and it works fine if I don't map the studentdetails to customerdetails. I did multimapping, with one source message (the xml file I posted above) and two target messages (customerdetails and Mail, which is the external definition posted on the blog). I beleive I'm missing something here. Could somebody please guide me through this?
Thanks
Karthik
hi,
I still have not found the solution for this problem. Michal, your blog works fine when my source message has got only the mail details. As per your advice, I tried modified the structure of the xsd file as follows
<xs:schema targetNamespace="http://sap.com/xi/XI/Mail/30"
xmlns:xi="http://sap.com/xi/XI/Mail/30"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!--
Mail
-->
<xs:element name="Mail">
<xs:annotation>
<xs:documentation>Mail package for XI - Mail Adapter</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Subject" type="xs:string" minOccurs="0"/>
<xs:element name="From" type="xs:string" minOccurs="0"/>
<xs:element name="To" type="xs:string" minOccurs="0"/>
<xs:element name="Reply_To" type="xs:string" minOccurs="0"/>
<xs:element name="Content_Type" type="xs:string" minOccurs="0"/>
<xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
<xs:element name="Message_ID" type="xs:string" minOccurs="0"/>
<xs:element name="X_Mailer" type="xs:string" minOccurs="0"/>
<xs:element name="Content" minOccurs="0">
<xs:annotation>
<xs:documentation>any type</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="encoding" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="MailReceipt">
<xs:annotation>
<xs:documentation>Mail Receipt for XI - Mail Adaper</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Server" type="xs:string"/>
<xs:element name="Format" type="xs:string"/>
<xs:element name="UseMailPackage" type="xs:boolean"/>
<xs:element name="Encoding" type="xs:string"/>
<xs:element name="Subject" type="xs:string" minOccurs="0"/>
<xs:element name="From" type="xs:dateTime" minOccurs="0"/>
<xs:element name="To" type="xs:string" minOccurs="0"/>
<xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="CustomerlistExternal">
<xs:annotation>
<xs:documentation>Customer List</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Customername" type="xs:string"/>
<xs:element name="Customerid" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
My source message will be something like
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:studentlisttest xmlns:ns1="urn:karthiksender_to_karthikreceiver">
<Student>
<studentid>1</studentid>
<lastname>abclname</lastname>
<firstname>abcfname</firstname>
</Student>
<Mail>
<From>[email protected]</From>
<To>[email protected]</To>
<Subject>Testing Mail adapter</Subject>
</Mail>
</ns1:studentlisttest>
</ns0:Message1>
</ns0:Messages>
I have mapped the <student></student> information to customerlist, with customerid --> studentid and customername --> firstname or lastname (for symplicity). This was a multimapping with one source and two target messages. My test mapping output is
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns2:Mail xmlns:ns2="http://sap.com/xi/XI/Mail/30">
<Subject>Testing Mail adapter</Subject>
<From>[email protected]</From>
<To>[email protected]</To>
</ns2:Mail>
</ns0:Message1>
<ns0:Message2>
<ns2:CustomerlistExternal xmlns:ns2="http://sap.com/xi/XI/Mail/30">
<Customername>abclname</Customername>
<Customerid>1</Customerid>
</ns2:CustomerlistExternal>
</ns0:Message2>
</ns0:Messages>
So how would I get this part of the <CustomerlistExternal></CustomerlistExternal> part of the message as an attachment to the mail address specified in the <ns2:Mail></ns2:Mail> tags.
I'm definitely not understanding it right and am missing something. Could you give me step by step instructions to acheive this. I apologize for the trouble..this would be of great help to me.
Thanks
Karthik
Similar Messages
-
Receiver Mail Adapter with external Email-Provider
Hi everyone,
I have implemendet an Scenario with a receiver Mail Adapter. With using the SAP-Mail-Server it works fine.
Now I want to use an external Email Provider like GMX or yahoo. But the Parameter e.g. smtp://mail.gmx.net does not work.
Is this generally with an external Email Provider possible?
Thanks in advice
ChristophHi,
of course it is, but:
your XI has to see the external provider = opened ports
Regards,
michal -
How to Configure Receiver Mail Adapter?
I need to designed a BPM if Message is failed to update database then send an e-mail to alias group in Microsoft outlook by using Receiver Mail adapter.
Can someone help me to design above BPM and how I need to configure receiver mail adapter.
Thanks in advance!
MrudulaI am getting <Trace level="3" type="T">Unknown channel type: Mail</Trace> when it tries to call "MAIL" adapter.
Does anyone has any clue where should I look?
Thanks!
Mrudula
<Trace level="3" type="T">Calling pipeline service: PLSRV_CALL_ADAPTER</Trace>
<Trace level="3" type="T">Reading Pipeline-Service specification...</Trace>
<Trace level="3" type="T" />
<Trace level="3" type="T">Pipeline service specification (table SXMSPLSRV)</Trace>
<Trace level="3" type="T">PLSRVID = PLSRV_CALL_ADAPTER</Trace>
<Trace level="3" type="T">PLSRVTYPE = =SWITCH=</Trace>
<Trace level="3" type="T">ADRESSMOD = SD</Trace>
<Trace level="3" type="T">P_CLASS =</Trace>
<Trace level="3" type="T">P_IFNAME =</Trace>
<Trace level="3" type="T">P_METHOD =</Trace>
<Trace level="3" type="T">FL_LOG =</Trace>
<Trace level="3" type="T">FL_DUMMY = 0</Trace>
<Trace level="3" type="T" />
<Trace level="3" type="T">Unknown channel type: Mail</Trace>
<Trace level="3" type="T" />
<Trace level="3" type="T">Pipeline service specification (table SXMSPLSRV)</Trace>
<Trace level="3" type="T">PLSRVID = PLSRV_CALL_ADAPTER</Trace>
<Trace level="3" type="T">PLSRVTYPE = AENGINE</Trace>
<Trace level="3" type="T">ADRESSMOD = SD</Trace>
<Trace level="3" type="T">P_CLASS = CL_XMS_PLSRV_IE_ADAPTER</Trace>
<Trace level="3" type="T">P_IFNAME = IF_XMS_PLSRV</Trace>
<Trace level="3" type="T">P_METHOD = ENTER_PLSRV</Trace>
<Trace level="3" type="T">FL_LOG =</Trace>
<Trace level="3" type="T">FL_DUMMY = 0</Trace>
<Trace level="3" type="T" />
<Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL" /> -
Error while using Mail Package for dynamic email address - XMLScanException
Hi All,
i am trying to implement File_to_Mail Scanrio. Here i am using mail package stuff to make use the dynamic mail Id's. i am following the blog /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address. i have finished all the settings as per the blog but it throwing the following error
failed to send mail: com.sap.aii.messaging.util.XMLScanException: expecting start tag: Mail, but found Mail at state 1
Please help me to resolve this error.
Thanks in advance
-Siva
Edited by: Siva Ram on Jan 18, 2008 7:43 AM
Edited by: Siva Ram on Jan 18, 2008 7:43 AM
Edited by: Siva Ram on Jan 18, 2008 7:44 AM
Edited by: Siva Ram on Jan 18, 2008 7:44 AM
Edited by: Siva Ram on Jan 21, 2008 5:59 AMHi Siva
check with these threads discuss the same XMLScanException
Mail adapter fails when using Mail Package Format
Error in E-mail Adapter - Message protocol XIALL
Mapping Error with mail package
Error in Mail Adapter
See the below links also
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
/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/sravya.talanki2/blog/2005/08/18/triggering-e-mails-to-shared-folders-of-sap-is-u
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
Error in Mail Adapter
Mapping Error with mail package
Regards
Abhishek -
Receiver Mail adapter with multiple mail ids
Hi Experts,
I am doing File to Mail scenario.
I am generating mail package structure using Java mapping.
Email is not going to multiple mail ids mentioned in To field.
I tried with , and ; but for both it is behaving strange:
When using ,(coma)
in case of multiple receivers:
only last mail id will receive mail in Inbox
when using ;(semicolon)
Every email id person will receive mail but with same name listed under To: that is last mail id.
For example:
To: abc.at.test.com,xyzat.est.com,def.at.est.com
Then only def.at.test.com will receive mail
In case of semicolon(;):
Every mail id will receive mail in Inbox, that is abc.at.test.com,xyz.at.test.com,def.at.test.com
will get mail in their respective mail box, but all mails will have same TO field: def.at.test.com
I hope it is cleared.
If you want I can send outlook mail headers from outlook.
Best Regards,
DivyeshHi Divyesh
Refer the below thread. The same problem was being solved.
Mail Adapter - Multiple mail ID and multiple mail servers config.
Here is the Summery:
WRONG: receiver1@server1;receiver2@server2;
CORRECT: receiver1@server1;receiver2@server2
Regards,
Madan Agrawal -
Why Can't I receive mail in my icloud email address?
I am not able to receive messages to my icloud email address, what's going on please?
If this is happening on your iOS device, you might try deleting and recreating the account by going to Settings>iCloud, unchecking Mail, then checking Mail again. Or, on a Mac, by going to System Preferences>iCloud, unchecking Mail, restarting your Mac, then going back and checking Mail again.
-
Receiver Mail Adapter Error ( Dynamic mail address to be used)
Hi EveryBody,
I am getting an error in the RWB (Communication Channel Monitoring) as Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error: invalid XIMailAdapter channel 'a089879fd0b63a4b92ca72d4a4af2ec4'.Mail is not send to the receiver.I have tried using USE MAIL PACKAGE as base64 and NONE.
Can somebody help me out in the configuration.Hi,
have u refered the below weblog of michal:
Mail Adapter (XI) - how to implement dynamic mail address
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
Thnx
Chirag gohil. -
File to mail scenario with dynamic email addess
Hi All,
I am doing a file to mail scenario with attachment(mail package is used), where i need to pick a file from folder and based on the file name(Country code is provided in file name. for eg. Collections_UK02_20091210.txt. here UK02 is the country code), i need to send an email to dynamically. I am using value mapping for country code with email address. please provide me suggestions like how can i pick the file based on the country name and send to the corresponding email address.
Regards,
Mahakrishnan T.Hi Mahakirshanan,
>>how can i pick the file based on the country name and send to the corresponding email address.
You cannot do this.. better will be to make a generic interface which will pick the file and based on its filename it will make the to field
Follow these steps:
1 Read the file using communication channel (check the adapter specific identifiers)
2. Using dynamic mapping read the filename and based on the name of file decide the To address and update it to the To field of mail package. You can use value mapping to decide what the targetvalue can be.
Regards
Suraj -
Receiver Mail adapter with txt attachment
I'm having a requirement to transfer Text fiels as-is to email as an attachment.
With the study as of now I came to know that if I use mail adapter I can get my payload as XML attachment.
Can we get text file as attachment instead of XML file in E-Mail?hi das
check the below blogs
eMail Report as Attachment (Excel/Word)
eMail Report as Attachment (Excel/Word)
XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping
XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping
regards
kummari -
Has Yosemite fixed Maverick's Mail problem with Group email addresses?
Does anyone know if Yosemite has fixed the problem that Maverick's Mail program had with Contacts? Maverick's Mail program cannot show Group Address names in the email "To:" window. By default, it shows all of the email addresses in a Group rather than the Group name. The work-around requires putting Group Addresses in the "Bcc:" window. Has that problem been fixed in Yosemite?
Many thanks,
Bob WincklerHi Barney,
Just found out that Maverick's problem with Mail's Group address procedure has resulted in my email accounts being put on hold by my Internet Provider. I'm the president of a local club, and I routinely send out emails to 200+ email addresses several times a month. Since Maverick's Mail now doesn't keep Group addresses hidden when shown in the email "To:" window, we have to put those Group addresses into the "Bcc:" window. The first couple of times that I did that, the emails went through, but the third time that I tried to send out such an email, my Internet Provider shut down my email account with the statement "Your ability to send new mail has been suspended as a high volume of suspicious mail has been sent from your account recently. Please contact your IT administrator." The IT administrator required me to run a virus check and then set a new password for my account before they would reactivate it. In my discussions with several of my Internet Provideer's tech reps, it appears that the way the way that the Internet Provider has their server's security system set, a high volume of email addresses in the "Bcc:" section of emails is enough to shut down an account as suspicious. Until Apple gets this problem fixed, my only options are to switch internet providers (after finding one that will let high volumes of "Bcc:" go through) or switch to an older Mac operating system, which I've done (now using an ancient iMac 400DV running Tiger (OS 10.4.11). Given the high number of businesses, etc., likely to be using Macs, I'm really surprised that Apple has let this problem with Maverick's Mail program go uncorrected.
Best regards,
Bob W -
Receiver Mail Adapter with Attachment and Mailpackage
I have set up a scenario
filesystem: filexxx.xml filexxx.pdf
xml= mailpackage format to get the receiver mailaddress
pdf=the file i want to send as a attchment.
I am using the RenemAttachment module i found on SDN.
in SXMB_MONI it looks ok, the attachment name is filexxx.pdf application/pdf
But when i look at the mail send it shows as attachments
Untitled.txt and Untitled.pdf
Any id's
I only want to send the mail woth one attachment, the original pdf as a attchment.
tnxIssue should be solved with SP17.
I solved by putting the attacgement into the content part of the message.
like.
<?xml version="1.0" encoding="ISO8859-1"?>
<ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
<Subject>Greenery:TESTTEST</Subject>
<From>customerservicedesk@xxxxxxx</From>
<To>Peter.schults@xx</To>
<Content_Type>application/pdf; name=TEST.pdf</Content_Type>
<Content_Description>PDF FAKTUUR</Content_Description>
<Content_Disposition>attachment; filename=TEST.pdf</Content_Disposition>
</ns1:Mail> -
How to set "Cc" field in Dynamic Email address in Receiver Mail adapter
I have done the configuration for setting up the dynamic email address using the XSD provided by SAP in note no 748024. It is working fine.
Michal's blog Mail Adapter (XI) - how to implement dynamic mail address. was a gr8 help in doing this.
But there is no clue of setting up of "CC" in email.
There should be "CC" in email is our bussiness requirement.
Would appreciate your helps.
with regards,
Ravi SiddamHi,
If you do not need mail package for other reasons, I suppose it is enough to provide a value in Dynamic Configuration for fields "THeaderTO" and "THeaderCC" and the select "Use Adapter-Specific Message Attributes" and "Variable Transport Binding" in receiver Mail Adapter.
see <a href="http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/frameset.htm">SAP help</a> for more details.
Regards,
Daniele -
How to set "Cc" field in Dynamic Email address in Receiver JDBC adapter
I have done the configuration for setting up the dynamic email address using the XSD provided by SAP in note no 748024. It is working fine.
Michal's blog Mail Adapter (XI) - how to implement dynamic mail address. was a gr8 help in doing this.
But there is no clue of setting up of "CC" in email.
There should be "CC" in email is our bussiness requirement.
Would appreciate your helps.
with regards
Ravi SiddamHI,
See fragment from help,
Specifications for mail attributes:
○ Under From, specify the e-mail address from which the message is sent.
○ Under To, specify the e-mail address that will receive the message. If you enter more than one address, you must separate them with a semicolon.
If you have specified an IMAP server under URL, the message is saved in the specified folder but is not sent to the receiver specified under To.
○ Under Cc, specify the other e-mail addresses to which the e-mail is to be sent.
These addresses are visible to the receiver.
○ Under Bcc, specify the other e-mail addresses to which the e-mail is to be sent.
These addresses are not visible to the receiver.
○ Enter the Subject of the e-mail message.
○ Specify whether you want to encode the content of the e-mail message. You have the following options:
■ None
■ Base64 (default value)
■ quoted-printable
Hope this helps.
Regards,
Akshay.
reward points if find useful. -
Configuring the Receiver Mail Adapter
Hi,
I have to send data in a flat file via email using XI. I have configured a File adapter to read the XML file from sender. I have configured receiver mail adapter at the other end. I get success message in the SMXB_MONI transaction. But no mail is received.
My receiver communication channel settings are as follows:
Adapter type: Mail
Transport protocol: SMTP
Message protocol: XIPAYLOAD
Adapter Engine: Integration Server
URL: smtp://mail.xyz.com:25
Mail Attributes: Use Mail package (Source file has from/to Email Addresses)
I tried differnet cmobinations of SMTP server address (with/without port/using http:// etc), but no success.
Can anyone tell me what the problem could be and how to go about this?
Thanks in advance.
Riyazhi riyaz,
these r some of the links which can help u to configure ur mail adaptor.
https://www.sdn.sap.com/irj/sdn/weblogs? blog=/pub/wlg/1798
Info on Email Receiver Adapter
Mail Adapter Configuration in XI 3.0
regards
jithesh -
Regarding Receiver Mail Adapter Attachments formats
Hi Xians,
when we configure Receiver Mail Adapter, we get the payload as Attachments in XML format. Does it support any other format apart from xml like text, pdf etc
Regards,
VarunRajesh wrote:
Yes it supports all you need to do for conversion is to use MessageTransform Bean in adapter modules
and use parameter contentDispositon and contentDescirption things for setting different formats
Hi Rajesh,
Thanks for your reply. Can you please provide relevant blogs or any other docs on the same
Regards,
Varun
Maybe you are looking for
-
I am trying to authorize my computer and I get an error message: The required directory was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed. Help?
-
How large should I make the Windows partition in Bootcamp?
I've just taken delivery of a shiny new 17" Macbook Pro and I am planning to install Windows 7 on it and run SolidWorks 2010 as well as all the Mac side stuff (Adobe CS4, vectorWorks etc). The question I have is what do the experts here think I shoul
-
Integrating Nik plug-ins into an Aperture workflow
Hi. In his response to a [posted question|http://discussions.apple.com/thread.jspa?threadID=2746051&tstart=0] about noise reduction, forum guru William Lloyd spoke highly of the Nik plug-ins. I also like them alot, but have stopped using them and don
-
Which interface would you use to list each element of a vector?
Which interface would you use to list each element of a vector?
-
Available X Men Days of Future Past Now
Available X Men Days of Future Past Now http://xmendaysoffuturepast.easywebcontent.com/ https://www.facebook.com/Holidayhindifilm X-Men: Days of Future Past is a 2014 superhero film, based on the fictional X-Men characters appearing in Marvel Comics.