Mail adapter scenario
Hi
I require some input on including a mail adapter to an existing scenario
The scenarios is as follows,
I have to create some files around 20 and place them in two folders , that build has been done and tested , so I have a multi mapping , for those 20 files , and enhanced interface determination and is working fine
Now a new requirement is to send an email ,
kindly tell me the steps in IR and ID to include the mail adapter in this interface ??
considering it as an additional feature, nthing to do with Files ,,,
which means that an email adapter has to be called with the file adapters ( not before not after....the precedence doesnt matter )
its just that along with creating the files an email has to be sent ... thats all
I want to know what am i required to create :
in IR : is there a separate interface required .. smthing to do in mapping also ? i am presuming not since it is inbound
in ID : can i create a dummy busines service and what all do i need to create ???
please help
thanks
Dev
Hi,
You create a message type for mail adapter and an message interface. You can also use the predefined message type from sap. So now in multimapping you add this message type and map from your source to this mail mapping. Add the same message interface in interface mapping.
Create a mail receiver communicaiton channel with your mailbox parameters. Then add this to your receiver determination. Also you need to create a receiver agreement for this one.
You can see some help here:
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
You can do a search for more blogs and tutorials on mail adapter.
Regards,
---Satish
Similar Messages
-
Mail Adapter Scenario ----- Need help
Hi All
Again with same mail adapter scenarios .
I am trying to send my e-mail on Microsoft Exchange server to a FTP server .
So flow is like Mail system->XI-> File system.
While configuring sender mail adapter , i gave the following URL imap://S4DE8PSAANH.ibm.com/InBox as i am using IMAp4 as the protocol.
Now i have set of doubts and questions for which i need input from you all
a>I am still seeing my sender communication channel with green light (running ), its not picking up any new mail i came to my inbox. Any reasons why it did not pick up ?
b> Now to set up Receiver Determination and Interface Determination , i need to have inbound interface created, but here when my requirenent is just to send a e-mail content as XML to fle system , what interface should i use or how should i create a interface with interface mapping or message mapping ?
c>Any idea whether just configuring a sender mail adapter with certain poll interval will result in a XML message that can be seen in SXMB_MONI txn ? Or do i need to fullly set up my receiver system and complete whole configuration of the entire flow.
My intent is just to get a simple mail body into XI , how do i achieve it ?
I gave URL as imap://S4DE8PSAANH.ibm.com/InBox , still i did not get any XML message in SXMB_MONI txn ..or should i give IP address of my exchange server instead of S4DE8PSAANH.ibm.com ? ...
Can we see a XML message if only a sender communication channel is set up with no receiver ? .. I am just wondering why new mail in my inbox is not getting picked up into XI.
Thanks a lot to all who helped to me earlier , i guess i rewarded points to all those who guided me : -) and will do same again as promised.
Please help .
Thanks and Regards
rohanHi Rohan -
Here's what I can tell you:
- if the hostname is wrong, you'll get a 'UnknownHostException'.
- if the path (e.g. Inbox) is wrong or doesn't exist, you'll get a 'IOException... The requested item could not be found'.
- if you don't configure user authentication, you'll get a 'NullPointerException'.
This is all within Adapter Monitor - so since your mail CC status is green, we can only assume that your mail host is valid, your path is valid, and your user id/pwd is valid.
One thing to try, since 'Inbox' is common to any mailbox, try creating a new folder at the Inbox level (e.g. called 'Test1') and specify the URL as:
imap://S4DE8PSAANH.ibm.com/Test1
and see if your CC status is still green in the Adapter Monitor (make sure to look at the ID Cache Notifications and the timestamp in the adapter monitor).
Outside of this, SP9 is relatively old. You should patch your XI system as soon as you get a chance - with or without this problem.
Regards,
Jin -
Help Required on File to Mail Adapter scenario
Hi all,
Can someone give me some links or material regarding the step by step procedure to configure a file to mail adapter scenario (including the design and configuration). I have already gone through help.sap.com, but I need more clarification. So please guide me accordingly
Regards
V.KartikHi Karthik,
Also check these links on File to Mail adapter scenario:
Blogs:
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
/people/sap.user72/blog/2005/06/08/sending-attachments-in-mails
Sap File on Mail Adapter:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
Also check these similar threads:
How to implement file to mail scenario
What is the process for sending file thru email using Mail Adapter ???
Regards,
Subhasha Ranjan -
File to mail adapter scenario.
Hi All,
i have a file to mail adapter scenario.
here i get the data from tthe different vendors and what ever comes in should be validated and if needed sent as an attachment or detached from the message and then from receiver mail adpter to application server..if possible content conversion has to be done.
my questions are...
<b>1.whare should we validate the data..is it in the XI server or receiver mail adapter..
if so..how to do that validation
2.how can we send as attachments ..
3.how can we detach them..i.e if attachments are not required 4.if content conversion conversion has to be done where is that done..
4.after coming out of the receiver adapter....how can we send it to the appliocation server.</b>
Thanks in advance..
cheers,
raghavesh
Message was edited by:
Raghavesh Reddy
Message was edited by:
Raghavesh ReddyRaghavesh,
Not sure if i follow the entire question.
><i>here i get the data from tthe different vendors and what ever comes in should be validated</i>
I guess you are getting files using the file adapter.
><i>and if needed sent as an attachment or detached from the message and then from receiver mail adpter to application server..if possible content conversion has to be done.</i>
Not sure I follow this part. You validate your incoming file and what do you do
1. If the file is valid?
2. If the file is invalid?
are you sending mails in both cases.
Like pinted out there are multiple places where validations can be done,
1. Module --> https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e
2. Mapping --> Graphical / Java
There are many options and they all depend on the incomuing payload and the entire process.
So , if you can give us more details, maybe an optimum solution can be discusses.
Regards
Bhavesh -
I am working on a scenario where XI will send the xml to the receiver via e-mail. I am not getting any e-mail from the XI system. Can I specify gmail or yahoo account ids along with the property settings?
Do I have to do anything on the SCOT transaction?
Regards,
N.SMoorthy,
I wanted to let you know that am working on a RFCBPM-XI-Mail adapter scenario. This scenario worked on a regular file adatper scenario. Now I am just changing the sender communication channel to selec the mail adatper.
I am getting the following error in the mail adapter:
<b>'error occured: [2006-09-27T00:21:04Z] unable to call the mailer; com.sap.aii.messaging.srt.BubbleException: Failed to call the endpoint [null "null"]; nested exception caused by: java.io.IOException: server not responding OK to MAIL FROM; 530 5.7.0 Must issue a STARTTLS command first 40sm120265wrl"</b>
Here are the parameters:
Transport protocol : SMTP
Message Protocol : XIPAYLOAD
Adapter Engind : Integration Server
url:smtp://gmail.com (also tried the IP address of this server)
Authentication mode: plain
user: [email protected]
password : no password
Mail attributes:
From : [email protected]
To : [email protected]
subject : sample e-mail
Content Encoding: base64
Please let me know where the error is;
N.S -
Configurations required for sender/ reciever mail adapter scenario...
Hi,
I have to work on few mail scenario's i.e, sender and reciever.
Please let me know what all configurations are required in XI server to make the system ready to send and recieve mail like SMTP configurations...
Thanks..Hi,
how to use mail adapter
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
XI: Dynamic name in the mail attachment - pseudo "variable substitution"
The specified item was not found.
XI: Sender mail adapter - PayloadSwapBean - Step by step
The specified item was not found.
XI: HTML e-mails from the receiver mail adapter ?
The specified item was not found.
Mail Adapter (XI) - how to implement dynamic mail address
The specified item was not found.
S/MIME Security for the MAIL-Adapter within XI
S/MIME Security for the MAIL-Adapter within XI
Configuring sender mail adapter
http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/frameset.htm
Thanks,
Madhu
Edited by: Madhu sudhan Reddy on Jul 18, 2008 7:54 AM -
E-Mail reporting in file to mail adapter scenario
Experts,
I am working on a file to mail adapter in which, have to just send a mail to the recipient by putting a subject line and mail body.
am following the following example
/people/community.user/blog/2006/09/07/email-reporting
but my requirement is not to send the mail attachment. I just need to send a mail body stating the error location.
here at teh receiver side, have downloaded a mail.xsd. in this "subject line","from field" , "to" field is there but there is no "mail body" field .
Can any one please help me out. I just require to send a mail body to the recipient.
Thanks
VeeruExpert,
I have used but still am getting teh attachment not as a mail body.
Isit possible to send the mail body via XSLT mapping , for eg
<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://perks.com/MailTest">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
<Subject>Error files from XI</Subject>
<From>from mail ID</From>
<To>to mail id</To>
<Content_Type>text/html</Content_Type>
<Content>
<xsl:text xsl:space="preserve">The error files for which service entry has not been created:</xsl:text>
<xsl:value-of select="$break"/>
<xsl:value-of select="$break"/>
<xsl:value-of select="$tableB"/>
<xsl:value-of select="$thB"/>
<xsl:value-of select="$tdB"/>
<xsl:text xsl:
</Content>
</ns1:Mail>
</xsl:template>
</xsl:stylesheet>
Any suggestions?
Thanks
Veeru -
Need to send a mail back to the user in Sender Mail adapter Scenario
Hi all,
I have a scenario where the user fills the Price form or the Article form (which is a Adobe Form).When the user clicks on the "submit" button,the form is converted into xml , gets attached to the mail and sent to PI.
Now the user sometimes attaches the pdf directly instead of submitting the form. This results in the mail being sent
with pdf as attachment.
Now my requirement is to send a mail back to the user asking them to send an xml instead of a pdf.
How can this be done ?
Kindly let me know friends.
Quick Response is appreciated.hi Sanjay,
Have a look on Michal's blog, it's for JMS, but it works for others: [PI/XI: Quick tip: Preserving attributes of XI messages via MultipartHeaderBean|PI/XI: Quick tip: Preserving attributes of XI messages via MultipartHeaderBean]
Mickael -
File to Mail Scenario- Error in Mail Adapter
Hi,
I am working on File to Mail Scenario- I am getting the below Error in Mail Adapter
Delivering the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint [null "null"]; nested exception caused by: java.io.IOException: no receiver address specified.
Could any one please provide a solution
Rgards,
VarunPlease recheck the mail adapter configuration.Check the url field.
Ref for Mail adapter
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/frameset.htm -
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 -
Mail adapter - how to dinamically change attachment file name in sending
How can I dynamically change the attachment filename when preparig email to be sent? The attachment is an invoice in XML format and I have to put the invoice number into the attachment file name.
Thanks in advance.
Giuseppe.Hi,
Go through this docs.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
Hope these bloga are useful..
/people/community.user/blog/2006/09/07/email-reporting
/people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
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
Thanks,
Satya -
Receiver mail adapter - Payload as a Text attachment
Hi,
In my proxy to mail adapter scenario, when i want to send payload to email as a Text email, where i need to content conversion in XI (XML to Txt file)
when i send payload, currently i am receiving as a XML file.
I try to follow like Rushikesh Deshmukh XI thread: Text Attachment in Mail Adapter in XI forum(topic)
I have having following config
Processing Sequence
localejbs/CreateAttachment Local Enterprise Bean XML2Plain
localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
Module Configuration
XML2Plain Transform.Class com.sap.aii.messaging.adapter.Conversion
XML2Plain Transform.ContentType text/plain;charset=utf-8
XML2Plain xml.Header1000.fieldFixedLengths 100,10,10,30,30,80,80,20,10,10,20,20,30,10,18,240,10,30,18,10
XML2Plain xml.Header2000.fieldFixedLengths 100,30,40,240
XML2Plain xml.addHeaderLine 0
XML2Plain xml.conversionType StructXML2Plain
XML2Plain xml.recordsetStructure Header1000,Header2000
Please suggest some solution."
Could you tell me exactly where i need to do all these setting and
do i need import localejbs/CreateAttachment Local Enterprise Bean XML2Plain...I mean shall i add same in my processing sequence
give in detail ? (in Receiver mail adapter Communication channel, advanced mode additional parameters)
I tried to follow this also
http://help.sap.com/saphelp_nw04/helpdata/EN/4e/c153426da9bd30e10000000a155106/frameset.htm
but i could not find much info on this help.sap.com reg. req.
Thanks
PrabaharanHi
f i create like this Receiver CC (module Tab)
number: 1
Module Name: localejbs/CreateAttachment
Module Type: Local Enterprise Bean
Module Key: mail
is it enough? do i need any other setting like this
Did you deployed CreateAttachment on PI server. As this is not a standard SAP module this is a custom module?
mail as module key is already used by XIMAILAdapterBean use some other key for CreateAttachment
Settings are fine for the Module
Processing Sequence
localejbs/CreateAttachment Local Enterprise Bean XML2Plain
localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
Module Configuration
XML2Plain Transform.Class com.sap.aii.messaging.adapter.Conversion
In this:
Module Key: XML2Plain
Parameter Name: Transform.Class
Parameter Value: com.sap.aii.messaging.adapter.Conversion
is it right?
Processing sequence is fine
XML2Plain Transform.ContentType text/plain;charset=utf-8
XML2Plain xml.Header1000.fieldFixedLengths 100,10,10,30,30,80,80,20,10,10,20,20,30,10,18,240,10,30,18,10
XML2Plain xml.Header2000.fieldFixedLengths 100,30,40,240
XML2Plain xml.addHeaderLine 0
XML2Plain xml.conversionType StructXML2Plain
XML2Plain xml.recordsetStructure Header1000,Header2000
can i anyone explain how to these settings?
Is this key valid to provide inputs to the module check with the code for this module
This looks like valid for MessageTransformBean ro StrictXMLtoPlainBean
Thanks
Gaurav
Edited by: Gaurav Bhargava on Oct 15, 2008 5:34 AM -
Column header in receiver mail adapter
Hi experts,
I have a proxy to mail scenario in which I send a mail with a file attached.
Is it possible to put column headers in the attachment, possibly without changing the mapping?
I mean, working with module configuration in communication channel?
Thanks
Fabio Bonihi
There are several scenario's
have a look at following :
/people/sap.user72/blog/2005/05/02/useful-sap-notes-for-xi
/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
/people/sravya.talanki2/blog/2006/01/12/xi-triggering-e-mails-with-multiple-attachments--problems
/people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
/people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure - Mail Adaptor options
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] - File to Mail
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address - Dynamic Mail Address
and for further
you can follow
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address - Dynamic Mail Address
i hope this will help you.
Pls : Reward points if helpful
Vishal -
Error in receiver Mail Adapter of PI 7.1
Hi Team,
I had configured Mail Receiver Adapter in PI 7.1 with the following Parameters.
I had imported the XSD given & Mapped only Subject, From, To, Content fields.
In Receiver Communication Channel parameters are
*Transport Protocol = SMTP
Message Protocol = XIALL
URL = SMTP url given
Authentication Method = Plain
User/ Password given for my id only
MAIL Attributes
From, To = my own company id
Content Encoding = base64*
These are the seeing i had done for Mail Receiver Communication Channel
When I test by HTTP, i am getting Succesful in Moni & in Adapter i am finding this error.
com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error: invalid XIMailAdapter channel 'b7b80e17d9e336b38354f663c01aed68'
Mail Settings have been done in System, got even Test mails from System.
Thanks in Advance,
SriramSee, the XSD that you are referring or the blog is referring needs to be imported under External Definitions and directly use it in message interface & message mapping ....you dont again need to create a DT based on that XSD!......you will need a DT & MT just on the sender side (in your particular case)
So just create the DT for sender (you seem to have done this part).....import the XSD into IR from this location
https://websmp205.sap-ag.de/~sapidb/012006153200000361852004E/ximail30_xsd.txt
use it on the receiver side.....The only thing that i wanted to mention is that when you enter the Subject, To, From details in CC you can even design your own DT for receiver side
I hope that you are entering the URl in this format --> smtp://<the url>
Check this thread :invalid XIMailAdapter
and this blog to confirm your settings: /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
Regards,
Abhishek. -
Sender Mail Adapter Configuration error
Hi,
I am working on scenario mail adapter to CRM system. And when I tried to configure the sender email adapter I have got the error following error, Can any one help me to resolve this issues
error occured: <b>exception caught during processing mail message; java.net.ConnectException: Connection refused</b>
the details I have provided are as follows
Transport protocol is POP3
URL - POP://mailservername/Inbox/folder
And I have tried with the IMAP4 also
URL - IMAP://mailservername/Inbox/folder
And we have cross checked that the XI server is able to ping that particular mail server.
Regards,
Venkat.Hi Venkateswara,
I would suggest that you go through these to know how to configure your sender mail adapter,
<a href="/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step mail adapter step by step</a>
<a href="/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure adapter Scenario</a>
Also, to know the various parameters of a sender mail adapter, just go through this link,
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm">Configuring sender mail adapter</a>
Check your mail adapter configuration against these details. Also, check if the mail server you are trying to access is running.
Also go thru this pdf to make yourself more comfortable with mail adapters.
https://websmp205.sap-ag.de/~sapidb/011000358700004556712005E/HowTo_Mail_Adapter2.pdf
Regards,
abhy
Maybe you are looking for
-
I can't install Windows 7 on my Macbook Pro with Retina disaply
Hello, I'm having a issue installing Windows 7 on my Macbook Pro with Retina (mid 2012), it has no CD drive so I'm able to use Disk-On-Key only. I've create a partition of 35GB in BootCamp for installing the Windows, then the Bootcamp is restart my m
-
Toshiba 32BV702 LCD has lost all power.
Hi all, I bought a brand new Toshiba 32BV702B 32-inch Widescreen Full HD 1080p LCD TV with Freeview (to give its full name as advertised!) roughly 2 months ago from a UK Argos. It has worked beautifully ever since, no problems what so ever. Until tod
-
Macbook 10.10.4 Update Killed Outlook Profile & disappeared documents
We have a user that installed the 10.10.4 update on his macbook and it seemed to go okay until he restarted and his outlook profile and some documents are missing. Outlook started up with the wizard and he says there was an important document he jus
-
HELP !! Serial communication
I'm trying to send file's throught RS232 (serial port) using javax.comm Sending and receiving messages works fine. So the communication between the ports is allright. But receiving file's doesn't work at all. Loading file: FileInputStream fis = new F
-
Regarding HR Form Editor(pe51)
hello friends, i have created a hr form using transaction pe51.i don't know how to pass the data to the hr form and view the final output.should i create a abap program to pass the data to the form and to run the form.or is they any other way.please