Configuring Mail Adapter as sender
Hello,
I'd like to ask for some help with configuration of SAP XI mail adapter as sender. I made a communication chanel with mail adapter type and specified transport protocol POP3, URL (pop3://localhost), user, password and poll interval. The problem is that XI doesn't trigger the
process, in other words it doesn't connect to my email server to receive the mail. What could be wrong? To test the environment, I made a test case withmail adapter as a receiver - and it works ok - it sends mail via my email server - so SMTP is working fine.
Thank you,
Igor
> I'd like to ask for some help with configuration of
> SAP XI mail adapter as sender. I made a communication
> chanel with mail adapter type and specified transport
> protocol POP3, URL (pop3://localhost), user, password
> and poll interval.
The correct URL is: pop://localhost
Which Mail-Server do you use?
Regards
Stefan
Similar Messages
-
Hi All,
Please can u say the steps for Configuring MAIL Adapter.
some weblogs are not getting opened.
what is the Datatype for Mail Adapter?
Thanks in Advance,
SriramHi ;
Refer this
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
If you can send your mail id i can forward you one step by step documentation
Mudit
Award points if it helps -
Error in configuring Mail Adapter
Hello Friends,
I am working in XI 2.0
I am trying to configure the Outbound file adapter for sending the Mail.
and i configure my adapter as
File adapter java class
classname=com.sap.aii.messaging.adapter.ModuleXMB2File
mode=XMB2FILE
##Adress for XMB endpoint
XMB.httpPort=8220
XMB.httpService=/mailSender
##File Adapter specific parameters
file.createDir=1
file.targetDir=e:/oraclejdbc/mail
file.targetFilename=mail.txt
#file.writeMode=append
file.writeMode=overwrite
uncomment and adjust parameters for using a dispatcher ***
Dispatcher.class=com.sap.aii.messaging.adapter.ConversionDispatcher
Dispatcher.namespace=namespace1
namespace1.ConversionDispatcher.logPayload=true
##namespace1.MailClient.contentType=text/html
namespace1.Service.1=MailClient
namespace1.MailClient.class=MailSender
namespace1.MailClient.smtpHost=POWAI
namespace1.MailClient.smtpPort=25
namespace1.MailClient.from=[email protected]
namespace1.MailClient.to=[email protected]
namespace1.MailClient.subject=NewXI Message
namespace1.MailClient.contentType=text/html
And when I am trying to start the adapter engine it gives me error as
Tue Nov 23 10:46:47 IST 2004 *****
10:46:47 (4115): File adapter listener initialized successfully
10:46:47 (8200): Conversion dispatcher 2.0.0904 initializing
10:46:47 (4024): Attempt to initialize file adapter failed with
java.lang.NullPointerException
10:46:47 : Error(s) in adapter configuration parameters found:
10:46:47 (4108): Unable to start file adapter (not initialized)
If any one know please help me to solve this problem.
Thanks & Regards,
Gaurav JainCould you check, if the file Mail.jar is installed correctly in your Adapter Framework folder and the starting program of the Adapter Framework (e.g. runadapter.bat or install_service.bat) is enhanced with this library file?
Regards
Stefan -
Mail adapter as sender and receiver
hello.
i made the scenario of Mail as sendeer and receiver, when as receiver it gives an error sayin "Mail: error occured: java.io.IOException: server does not support PLAIN or LOGIN authentication"...
i saw the web blog 1798 by Prasad ulagappan...over ther i see that in the screen shots the option for connection parameter for mail server is ther and thers no option for the kind of authentication which is ther in sp13...
i checked and unchecked both of them but gives error...
any suggestions..
Regards..
vishalHi
Just now i chk my scenario on SP13 using reciever mail adapter, and my scenario runs successfully.Try giving these values in Connection Parametersfor Mail Server in ur adapter as they works fine for me.
<b>URL:</b> URL of ur mail server
<b>Check</b> the box of <b>Configure User Authentication</b>.
<b>Authentication Method</b>: Plain
<b>User</b>: System User Name
<b>Password</b>: System Password
Hope it helps.
Regards
Arpit Seth -
Mail-Adapter: Examine Sender & Receiver E-Mail adress?
Hi everybody,
we send successfully a mail to the Mail adapter. Because of problems with our excahnge server we would like to find out the sender & receiver E-Mail adresses.
I cant see them neither in the communicaiton channel nor in the payload of the RWB message monitoring.
Any ideas?
Regards MarioHi, I found it.
I did not check the drop-down to payload on tab message content.
Regards Mario -
Configuring mail priority when sending mails via SMTP from ECC 6.0 system
hi all,
we have the problem, that mails which we send via SMTP out of ECC 6.0 system
reach our SMTP server with very low priority. So the server usualy send them in the evening.
Is there a possibility to configure global priority for mails?
best regards
DavorGoto SCOT transaction, double click on STMP you will find the option
Maximum waiting time for repeat send attempt procedure:
Hours/minutes / 30. define the time over there.
II option execute the job- start send process,
Regards,
Mahesh -
Configuration FTP Adapter XML - Sender
Hello:
I need to configure dynamically the IP, directory and file name of the FTP through a Sender file/FTP adapter; in other words, I need to set those parameters in the XML message. The IP address, directory and file name of the FTP are obtained in the first message and match with another, which is sent to the adapter (communication channel) to get the data of a file.
I would appreciate your help.
Thanks a lot!Hi Julio,
Configuring dynamically the parameters for FTP sender adapter is not possible, due to two reasons,
1. FTP sender is a pull adapter, so you cannot set parameter (in runtime) and fetch the data.
2. FTP sender is a async adapter
Try to have a soap sender with AXIS framework (thought i have never tried, but this looks promising).
Regards
Suraj -
To configure HTTP adapter as sender?
Hi all,
I have read that HTTP Adapter could be configured as senderor receiver but i am not able to do the same.
Please help me out.
Thanks,
DivyaBelow is an HTML used for testing purposes. Copy-n-paste the code to a file and name it something like httpXiTest.html. Execute the html file by double-clicking it and see the effect. Use it as an example for what you wish to do.
==================================================
<html>
<head>
<title>Send XML Data to XI System</title>
<script language="javascript">
<!--
function SendData() {
var mypath = document.myform.filename.value;
var myescns = escape(document.myform.mynamespace.value);
var mycall = 'http://'
+ document.myform.myhost.value + ':'
+ document.myform.myport.value + '/sap/xi/adapter_plain?bs='
+ document.myform.mysystem.value + '&namespace='
+ myescns + '&interface='
+ document.myform.myinterface.value + '&qos='
+ document.myform.myqos.value;
var xmlstream;
if (document.myform.selectXML[0].checked == true) {
xmlstream = new ActiveXObject("ADODB.Stream");
xmlstream.Mode = 3; // 1=read 3=read/write
xmlstream.Open();
xmlstream.Type = 1; // 1=adTypeBinary 2=adTypeText
xmlstream.LoadFromFile(mypath);
else {
xmlstream = document.myform.xmltext.value;
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.Open("POST",mycall,false);
//xmlhttp.setRequestHeader("Content-Length",xmlstream.Size);
xmlhttp.setRequestHeader("Content-Type","text/xml");
if (document.myform.selectXML[0].checked == true) {
xmlhttp.send(xmlstream.Read(xmlstream.Size));
else {
xmlhttp.send(xmlstream);
XICall.innerText = mycall;
XIAnswer.innerHTML = xmlhttp.responseText;
function getFile() {
var mypath = document.myform.filename.value;
var ForReading = 1;
objFSO = new ActiveXObject("Scripting.FileSystemObject");
objTextFile = objFSO.OpenTextFile(mypath, ForReading);
var filearray = "";
for(var n=0;!objTextFile.AtEndOfStream;n++) {
sRead = objTextFile.ReadLine();
filearray += sRead + "\n";
objTextFile.Close();
document.myform.xmltext.value = filearray;
function setHost(n) {
switch(n) {
case 1:
document.myform.myhost.value = "myxiserver.company.com";
document.myform.myport.value = "8000";
break;
default:
document.myform.myhost.value = "";
document.myform.myport.value = "";
function setNamespace(n) {
switch(n) {
case 1:
document.myform.mynamespace.value = "urn:sap-com:document:sap:rfc:functions";
break;
case 2:
document.myform.mynamespace.value = "urn:sap-com:document:sap:idoc:messages";
break;
default:
document.myform.mynamespace.value = "";
//-->
</script>
</head>
<body>
<form name="myform">
<p>XI adapter parameters: </p>
<p>
<table border=0>
<tr><td>hostname:</td><td>
<input type="text" name="myhost" size=50 maxlength=100
value=""><br/></td></tr>
<tr><td></td>
<td>
<input type="radio" name="selectHost" value="" onClick="setHost(1)">Example
<input type="radio" name="selectHost" value="" onClick="setHost(9)" checked>Other
</td></tr>
<tr><td>port:</td><td>
<input type="text" name="myport" size=50 maxlength=100
value=""><br/></td></tr>
<tr><td>sender service:</td><td>
<input type="text" name="mysystem" size=50 maxlength=100
value=""><br/></td></tr>
<tr><td>sender interface:</td><td>
<input type="text" name="myinterface" size=50 maxlength=100
value=""><br/></td></tr>
<tr><td>sender namespace:</td><td>
<input type="text" name="mynamespace" size=50 maxlength=100
value=""></td>
</tr>
<tr><td></td>
<td>
<input type="radio" name="selectNamespace" value="" onClick="setNamespace(1)">RFC
<input type="radio" name="selectNamespace" value="" onClick="setNamespace(2)">IDoc
<input type="radio" name="selectNamespace" value="" onClick="setNamespace(3)" checked>Other
</td></tr>
<tr><td>quality of service (EO/BE):</td><td>
<select name="myqos">
<option value="BE">Best Effort</option>
<option value="EO" selected>Exactly Once</option>
</select>
<br/></td></tr></table>
<p></p>
<input type="button" value="Send XML File" onclick="return SendData()">
<p>XML Text:
<table>
<tr>
<td><input type="radio" name="selectXML" value="1">from File</td>
<td><input type="radio" name="selectXML" value="2" checked>from Text</td>
</tr>
<tr valign="top">
<td>
Path to XML file: (e.g. C:\temp\test.xml)
<br><input type="file" name="filename" size=30 maxlength=80 value="" onChange="return getFile()">
</td>
<td>
Text for XML:
<br><textarea name="xmltext" cols="50" rows="20" wrap="off">
</textarea>
</td>
</tr>
</table>
<p>XI call:</p>
<div id=XICall></div>
<p>Answer:</p>
<div id=XIAnswer></div>
</form>
</body>
</html> -
Hi all,
I am using the mail adapter to send mails to end users for a certain process from the integration server. The SXMB_MONI doesnt give me any errors but I cannot see the mail coming through. On viewing the adapter monitor, I dont see the mail adapter in the monitor though I have configured the mail adapter in the directory settings. Am I missing something? Do I have to do something extra to get the mail adapter into the adapter monitor? When I run the trace , I am able to see the following error
<Trace level="3" type="T" />
<Trace level="3" type="T">Unknown channel type: Mail</Trace>
<Trace level="3" type="T" />
Any ideas please
-TeresaHi Teresa,
If your XI system in on SP9 then check this OSS note:789584
It describes the solution for the problem "The XI 3.0 Adapter Monitor does not display the status of the mail adapters in detail"
This will atleast help you see what is happening with the mail adapter.
You may also want to check these OSS notes:
817049 and 810238 on mail adapter.(SP10)
Regards,
Sridhar -
Sender Mail adapter : Delete after reaD
I am working on a sender mail adpater. Now, my requirement is that once the XI reads the attachement of an unread mail, the status of the mail should be set to read.
In the sender mail adpater, there is a check box available :
Delete the mail once it has been read.
Do you suggest this will help or if you have any appraoch, please let me know.Hi Priya,
I dont know about how to make the mail status unread after reading attachment but just for your information please be careful while using mail adapter on sender side as it affects performance and also it may delete all your inbox mails and that check box Delete the mail once it has been read. wont solve your problem.
Regards,
Amit. -
HI Experts,
I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to vendor. Can you please help me on the same?
Thanks
SaiSreevastavHi Sai,
you can use XSLT or java mapping or adapter module to convert IDOC xml to XLS. Please refer the below blog
Convert incoming XML to Excel or Excel XML – Part 1 - XSLT Way
Convert incoming XML to Excel Sheet Part 2 – Adapter Module way
Convert incoming XML to Excel Sheet
then after converting to Excel, you can use the payloadswap bean in mail adapter
XI: Sender mail adapter - PayloadSwapBean - Step by step
regards,
Harish -
How to send meeting request by mail adapter
Hi,
I'm doing scenario from file to mail. I have a sender file adapter to pick up the meeting request standard format file(*.ics) from file system. On the other side I have a receiver mail adapter to send mail. What I want to do is the sent mail by mail adapter should be a meeting request instead of a normal email with meeting request as its attachment.
I use localejbs/AF_Modules/MessageTransformBean as first module in mail adapter, but the sent mail is also a normal with meeting request as its attachment. This is not what I expected.
I also created own module for mail adapter to realize it. Do I need to change the format of meeting reqeust information in payload? Actually I have chance to do it in module. But what should I do? Thanks.Hi, Krishna:
Thanks for your reply.
Actually the content of ics file is like:
BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
VERSION:2.0
METHOD:REQUEST
BEGIN:VEVENT
ATTENDEE;CN="Wu, Oscar";ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:[email protected]
ORGANIZER:MAILTO:[email protected]
DTSTART:20070626T130000Z
DTEND:20070626T150000Z
LOCATION:Shanghai
TRANSP:OPAQUE
SEQUENCE:0
UID:040000008200E00074C5B7101A82E00800000000F067E9BB0DB8C7010000000000000000100
00000C7423D530FE8744687B0C7C08D4CAA58
DTSTAMP:20070626T104913Z
DESCRIPTION:Meeting request without attachment\n
SUMMARY:Test appointment
PRIORITY:5
X-MICROSOFT-CDO-IMPORTANCE:1
CLASS:PUBLIC
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR
this content is content of meeting request based on RFC 822, what I want is not get the content itself in mail, I want the mail adapter send a meeting request out automatically when it get this content.
Thanks -
Looking for .XSD for mail for sending the mail through mail adapter
Hi Experts,
I am looking for .XSD file for sending mail.I am using Mail adapter to send mail to report error occur on creating PO document in my scenario to a specified department's email id.I searched for many blogs but not get any .XSD file for email.Looking for a suugesstion.
Thanks
DeepakDo you have S -user name and password? If not then never mind, Copy the below XSD, I took it from the link which I gave to you.
<?xml version="1.0" encoding="utf-8" ?>
<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">
<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:schema> -
When MAIL adapter failed to send the mail to recever, how does it handle XI
Hi Experts,
I used dynamic mail adapter, how do we track whether the mail has been successfully received by receiver, if it is failed to send the mail by mail adapter how do we handle in XI. Please help me out.
thanks
sivaSiva:
There is one option in Mail Adapter (Receiver) "Send Delivery Status Notification". I think, it will help you to get the status. When you fill the above option, you are required to fill a recipient email id to whom, the status of the email will be emailed. From there, you can get the status. Please dig little more into this.
http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm -
Setting dynamic attachment name in mail adapter
Hi experts,
I have a mail adapter that send e-mails from ECC to several address.
I have configured dynamically the FROM and TO field using the code showed below in message mapping:
public String SetMailParameters(String Mail_address_to, Container container){
//write your code here
String valueFrom = "my_address";
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/Mail", "THeaderFROM");
DynamicConfigurationKey key2 = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/Mail", "THeaderTO");
conf.put(key1, valueFrom);
conf.put(key2, Mail_address_to);
return "";
In communication channel I have checked ASMA and variable transport binding (using XHeaderName1 and 2), mail package is not checked.
It works fine!
My question is:
I need to dynamically configure also the Attachment name: is it possible?
I've tried adding the code below:
DynamicConfigurationKey key3 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
conf.put(key3,Attachment_name);
and also
Transform.ContentDisposition attachment;filename=<FileName>
in Message TransformBean in communication channel, but it doesn't work!!!
Any idea?
Thanks
Fabio BoniHi,
thanks a lot!!
ASMA and variable transport binding must be checked or not?
it raise an error in runtime workbench message monitoring:
2010-09-02 17:41:15 Success Mail: calling the adpter for processing
2010-09-02 17:41:15 Error Mail: call failed; com.sap.aii.messaging.util.XMLScanException: expecting end tag: Mail, but found {'}Content_Disposition at state 1
2010-09-02 17:41:15 Success Mail: sending a delivery error ack ...
2010-09-02 17:41:15 Success Mail: sent a delivery error ack
2010-09-02 17:41:15 Error Mail: error occured: com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.messaging.util.XMLScanException: expecting end tag: Mail, but found {'}Content_Disposition at state 1
2010-09-02 17:41:15 Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.messaging.util.XMLScanException: expecting end tag: Mail, but found {}Content_Disposition at state 1
2010-09-02 17:41:15 Error Exception caught by adapter framework: com.sap.aii.messaging.util.XMLScanException: expecting end tag: Mail, but found {}Content_Disposition at state 1
2010-09-02 17:41:15 Error Delivery of the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.messaging.util.XMLScanException: expecting end tag: Mail, but found {}Content_Disposition at state 1.
This is my message in message monitoring:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
<Content_Disposition>"attachment; filename="MyFileName.txt"</Content_Disposition>
<Content>ZLF;0001000079;Dealer Motors UK</Content>
</ns1:Mail>
In message mapping with target message mail package I've linked Content_Disposition with the constant
"attachment; filename="MyFileName.txt"
If I cancel this relation the mail arrives correctly.
One other thing: when I took mail.xsd from SAP the fields Content_Disposition and Content_Description weren't in, so I added them manually in XSD.
thanks
Edited by: Fabio Boni on Sep 2, 2010 5:42 PM
Edited by: Fabio Boni on Sep 2, 2010 6:06 PM
Maybe you are looking for
-
Installati​on troublesho​oting?
When installing Labview 7.1 to a fresh XP installation the install progresses to the end of Part 1 of 13 and then prompts to "Please insert the disk: Labview Full Development System". However this disk (LV_71_FDS) is already in the drive? I'm sure
-
Hello there, I've used Lightbox 2 on my site as a means for an efficiant photo gallery. When the image is clicked, it opens us within the page and the rest of the page goes a very dark grew...however the Flash SWF don't, they stay just as they are. I
-
How do I successfully and fully download Adobe Reader on a Macbook Pro?
-
Java 6 upgrade -- ant replicating class files on compilation
On upgradation to java 6 , ant seems to replicated class files which have already been compiled into jars (which i have mentioned in classpath). This is the ant script <javac srcdir="src" destdir="/WEB-INF/classes" classpath="${library.jar}" deprecat
-
Hi, I have just changed contract and phone and wish to transfer the content of my iphone 4 to my new phone device which is not and I-product. When I attempt to sign into i-tune to transfer the item to dropbox, i am unable to sign into i-tune. Help