Receiver mail adapter configuration for e-mail attachments
Hi ,
I need to send two files from sender file adapter to receiver mail adapter as e mail attachment.
I want same attachment name in email as on sender side on FTP location.
This is by pass scenario no object created in ESR.Please suggest how to handle this.
For example if file name test.txt is send by file adapter then on mail attachment name should be test.txt
Thanks
Mohit
Edited by: Mohit Verma on Feb 10, 2012 4:18 PM
Hi Mohit,
Follow this blog for the ID configuration:
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4383
Create Receiver Determination and Interface Determination as described, and add a sender file CC and receiver mail CC according to your needs, plus sender and receiver agreements.
In order to maintain the original file names, use a simple adapter module with the code mentioned here:
http://forums.sdn.sap.com/thread.jspa?threadID=2122711&start=14
Hope this helps,
Greg
Similar Messages
-
Rx Mail Adapter configuration for Attachment sending and dynamic From/ To
Hi
I have a senario in which i have to send a file content as an attachment and then take the values of the from / to /CC from the xml dynamically and post.
I am able to do it without dynamic
Do we need to add some modules to do the same.
RGds
AdityaHi,
Check this Weblogs
Dynamic Mail Address
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
Triggering Email from folder
/people/sravya.talanki2/blog/2005/08/18/triggering-e-mails-to-shared-folders-of-sap-is-u
Mail Adapter options
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
<b>Cheers,
*RAJ*
*Reward points if found usefull*</b> -
Send e-mail link, configure for web mail
I have a "send e-mail" link (DWCS4) on my Contact page. By defaut (at least, on my computer), clicking the link opens only my client e-mail, Outlook Express (which I virtually never use).
Question: Is there an easy way I can configure this link to open a web mail account like yahoo or gmail? More important, is there a way to allow a viewer of my site to click the link and open whatever e-mail his/her computer normally uses?
Thanks much,
TomThanks for the info. My client wanted to list only her e-mail rather than going through the host's server. I think she had a bad experience with her previous host not forwarding the e-mails to her address.
We're working with a new host now, so maybe the best thing is to set up an e-mail form (which is easy to do in DWCS4). I guess I just need to get the CGI script information from my hosting service and see what happens. If I can set it up so the viewer uses a form to submit and then the host server justs forwards it to her gmail address, that should work. Is this type of forwarding common?
Tom -
Receiver Mail Adapter configuration Error???
Hi,
i've created a Mail Adapter with the following configuration:
Adaptertype: Mail
Receiver
Transport-Protocol: SMTP
Message-Protocol: XIPAYLOAD
Adapter-Engine: Integration-Engine
I set From and To Fields to a valid address. When i start a test the message is passing the integration engine and an error occurs within the mail-adapter:
Mail: Configuration error: Channel 7a15b118b96b392bbc9be5922f55b7d0is not configured for XIMailAdapter
Mail: call failed; com.sap.aii.af.ra.ms.api.RecoverableException: Error: invalid XIMailAdapter channel 7a15b118b96b392bbc9be5922f55b7d0
How can this happen?
regards
msHi,
Reffer these 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]
/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
<u><b>Target Structure:::::</b></u>
- <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:schema>
Regards
Seshagiri -
Mail Adapter Configuration in XI 3.0
Hi all,
i tried to set up a process using the mail adapter. Unfortunately it doesn't work. Has anyone succeeded in setting up a process with the mail adapter using POP3 and SMTP?Hi Michael,
I did not find any documentation of the XI 3.0 mail adapter so result of practical test only for outgoing mail using SMTP:
<b>Mail server settings:</b>
SMTP port 8025 (you can configure any port of course)
Account demo, password test
<b>Mail adapter configuration:</b>
Bubble adapter java class
classname=com.sap.aii.messaging.adapter.ModuleBubble
Bubble.Helper=com.sap.aii.messaging.adapter.ModuleBubbleHelperXIMailImpl
Part 0 : common part ######
Mail.MailSubject="mail from adapter z_outmail"
Mail.MailFrom=[email protected]
Mail.MailTo=demo@<you mail server name>
XIALL or XIPAYLOAD
Mail.MessageProtocol=XIPAYLOAD
Mail.Log=1110
Part : XI client to Mail server ######
OMail.TargetURL=smtp://<you mail server name>:8025
OMail.User=demo
OMail.Password=test
The port and path where the adapter waits for XMB messages from clients.
XI.Port=8240
XI.Path=/z_outmail
It look so that there is no POP3 support, just only IMAP.
Jiri -
Mail Adapter configuration connection timed out
I am setting up a simple mail scenario to test if my mailadapter works.
But I receive a error message in the Communication Channel I receive this error:
"exception caught during processing mail message; java.net.ConnectException: Connection timed out: connect"
Does anyone knows how to resolve this error?
gr RoyHi,
Refer this thread.
Sender Mail Adapter Configuration error
Regards,
Sudheer. -
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 -
Want to delete all the mails in the mail box configured for BPM Portal
Hi All,
Do you have idea to perform this activity.
I want to delete all the mails in the Dev mail box configured for BPM Portal.
Server and mailbox details as given below :
Mail a/c = Y00123
Mail server = sap.mail.com
Thanks, Sanjayhttp://java.sun.com/developer/onlineTraining/JavaMail/contents.html
http://www.jguru.com/faq/view.jsp?EID=17035
if you know the password of the account, i think you can also access the mail using mail client, like you use outlook to deal with your company mail daily. -
Sender JMS adapter configuration for IBM MQSeries
Dear All,
i am doing a IBM MQSeries 5.2.x Message ->sender JMS adapter -> XI server -> receiver RFC adapter -> R/3.
i have deployed the JMS adapter with the required jar files of IBM MQSeries 5.2.x in XI server.
in Sender JMS adapter configuration for IBM MQSeries 5.2.x, i have put following data:
1. Transport Protocol: Websphere MQ - is it okay?
in JMS provider settings:
2. in channel name - what should be there?
3. Transport Network protocol should be TCP/IP or WebsphereMQ - how to decide this thing.
4. JMS Complaint - whether WebsphereMQ or JMS API.
in JMS Settings:
5. JMS Queue user - is this IBM MQSeries 5.2.x Queue User or someother user?
6. JMS Message Selector - what data to take here.
So if anybody has connected IBM MQSeries 5.2.x to XI via JMS adapter, please answer my above queries.
Regards,
Rajeev GuptaHi Swaroop,
you can send me those documents at my gmail-id : [email protected]
Hi All,
one more question - to connect XI server to IBM MQSeries via JMS adapter in ID, do we need to have a MQSeries Client installed on XI server - or - just by configuring JMS adapter, we can send messages from IBM MQSeries to XI server without any MQSeries client on XI server?
Why Channel name is required in JMS configuration data?
Thanks,
Rajeev Gupta -
Sender Mail Adapter Configuration - Process Multiple Attachments
Dear sirs,
I need to process several attachments at the same mail message as individual payloads.
In default configuration of sender mail adapter only the body of message is used as payload.
So I added PayloadSwapBean Module at Processing Sequence and it processed the attachment I set in Module Configuration. I'm not able to process all attachments available, just one attachment is sent to PI pipeline.
How can I process all attachments of a single mail message?
Thank you in advance.
Fabio PurcinoHi Jose,
We are trying to implement reading multiple attachment in sender mail adapter.
Our Requirement is : Reading a mail having multiple .xls files. This should be read and converted to payload .
package multiswap;
//import com.sap.aii.adapter.xi.ms.XIMessage;
import com.sap.aii.af.lib.mp.module.*;
import com.sap.aii.af.lib.trace.Trace;
import com.sap.aii.af.sdk.xi.mo.Message;
import com.sap.aii.af.sdk.xi.mo.MessageContext;
import com.sap.aii.af.sdk.xi.mo.xmb.XMBMessageOperator;
import com.sap.aii.af.sdk.xi.mo.xmb.XMBPayload;
import com.sap.aii.af.sdk.xi.util.PayloadType;
import com.sap.aii.af.service.auditlog.Audit;
import com.sap.aii.af.service.cpa.*;
import com.sap.engine.interfaces.messaging.api.MessageDirection;
import com.sap.engine.interfaces.messaging.api.MessageKey;
import com.sap.engine.interfaces.messaging.api.Payload;
import com.sap.engine.interfaces.messaging.api.auditlog.AuditLogStatus;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Locale;
import javax.ejb.*;
public class MultiSwapRead
implements SessionBean, Module
private static final String VERSION_ID = "$Id: //tc/xpi.af/NW731EXT_07_REL/src/_af_application_ejb_module/ejbm/api/com/sap" +
"/aii/af/app/modules/PayloadSwapBean.java#1 $"
private static final Trace TRACE = new Trace("$Id: //tc/xpi.af/NW731EXT_07_REL/src/_af_application_ejb_module/ejbm/api/com/sap" +
"/aii/af/app/modules/PayloadSwapBean.java#1 $"
private static final String SIGNATURE_PROCESS = "process(ModuleContext , ModuleData)";
protected Hashtable cachedChannels;
protected SessionContext myContext;
public MultiSwapRead()
cachedChannels = new Hashtable();
public void ejbRemove()
public void ejbActivate()
public void ejbPassivate()
public void setSessionContext(SessionContext context)
myContext = context;
public void ejbCreate()
throws CreateException
public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData)
throws ModuleException
if(TRACE.beLogged(200))
TRACE.entering("process(ModuleContext , ModuleData)", new Object[] {
moduleContext, inputModuleData
ModuleData outputModuleData;
Iterator itr;
outputModuleData = inputModuleData;
String chid = moduleContext.getChannelID();
TRACE.infoT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, (new StringBuilder()).append("performing payload swap for channel ").append(chid).toString());
LookupManager lman = LookupManager.getInstance();
Channel chan = null;
try {
chan = (Channel)LookupManager.getInstance().getCPAObject(CPAObjectType.CHANNEL, chid);
} catch (CPAObjectNotFoundException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (CPAException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
Direction direction = chan.getDirection();
String swapkey = moduleContext.getContextData("swap.keyName");
String keyvalue = moduleContext.getContextData("swap.keyValue");
Object obj = inputModuleData.getPrincipalData();
Object pivotedObj = inputModuleData.getSupplementalData("mp.pivoted");
boolean pivoted = pivotedObj == null || !(pivotedObj instanceof Boolean) ? false : ((Boolean)pivotedObj).booleanValue();
Message mo = null;
if(obj instanceof com.sap.engine.interfaces.messaging.api.Message)
mo = (Message)((com.sap.engine.interfaces.messaging.api.Message)obj);
} else
if(obj instanceof MessageContext)
mo = ((MessageContext)obj).getMessage();
} else
TRACE.warningT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, "no message found");
if(mo != null && XMBMessageOperator.numberOfPayloads(mo) > 0)
// String midstr = XMBMessageOperator.getMessageId(mo).toString();
MessageKey auditkey = new MessageKey(((com.sap.engine.interfaces.messaging.api.Message) mo).getMessageId(), com.sap.engine.interfaces.messaging.api.MessageDirection.INBOUND);
itr = (Iterator) mo.getAttachments();
if(swapkey != null && keyvalue != null)
StringBuffer textSwappingbyBuf = new StringBuffer();
textSwappingbyBuf.append("Swap: swapping by '").append(swapkey).append("' ? '").append(keyvalue).append("'");
String textSwappingby = textSwappingbyBuf.toString();
TRACE.infoT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, textSwappingby);
Audit.addAuditLogEntry(auditkey, AuditLogStatus.SUCCESS, textSwappingby);
while (itr.hasNext()){
boolean swappedp = swapPayloads(mo, swapkey, keyvalue);
String swappedStatus = swappedp ? "Swap: successfully swapped" : "Swap: no matching payload found";
Audit.addAuditLogEntry(auditkey, AuditLogStatus.SUCCESS, swappedStatus);
} else
StringBuffer textInvalidBuf = new StringBuffer();
textInvalidBuf.append("Swap: parameter missing ");
if(swapkey == null)
textInvalidBuf.append("swap.keyName");
if(swapkey == null && keyvalue == null)
textInvalidBuf.append(" and ");
if(keyvalue == null)
textInvalidBuf.append("swap.keyValue");
String textInvalid = textInvalidBuf.toString();
TRACE.warningT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, textInvalid);
Audit.addAuditLogEntry(auditkey, AuditLogStatus.WARNING, textInvalid);
} else
String messageEmpty = "Swap: message is empty or has no payload";
TRACE.infoT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, messageEmpty);
return outputModuleData;
private static boolean swapPayloads(Message mo, String swapkey, String keyvalue)
swapkey = swapkey.toUpperCase(Locale.ENGLISH);
keyvalue = keyvalue.toUpperCase(Locale.ENGLISH);
int ifound = -1;
for(int i = 0; i < XMBMessageOperator.numberOfPayloads(mo); i++)
XMBPayload pldi = XMBMessageOperator.getPayload(mo, i);
String pldivalue = null;
if(swapkey.equals("PAYLOAD-DESCRIPTION"))
pldivalue = pldi.getPayloadDescription();
} else
if(swapkey.equals("PAYLOAD-NAME"))
pldivalue = pldi.getPayloadName();
} else
pldivalue = pldi.getContentAttribute(swapkey);
if(pldivalue == null)
continue;
pldivalue = pldivalue.toUpperCase(Locale.ENGLISH);
if(pldivalue.indexOf(keyvalue) < 0)
continue;
ifound = i;
break;
if(ifound >= 0)
XMBPayload pldfound = XMBMessageOperator.getPayload(mo, ifound);
if(pldfound.getPayloadType() != PayloadType.APPLICATION)
XMBPayload pldapp = XMBMessageOperator.getApplicationPayload(mo);
if(pldapp == null)
pldfound.setPayloadType(PayloadType.APPLICATION);
} else
pldapp.setPayloadType(PayloadType.APPLICATION_ATTACHMENT);
pldfound.setPayloadType(PayloadType.APPLICATION);
TRACE.infoT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, "successfully swapped");
return true;
} else
TRACE.warningT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, "no matching found");
return false;
We couldn't go further. Please have a look in highlighted code.
Regards,
Kesava. -
Sender mail adapter config for MS Exchange Server
Dear All Gurus,
Need your advice on configuring sender mail adapter (mail to file scenario ) for exchange server. I have read a lot of SCN threads and other articles and was not able to find the exact solution for this. PI version : 7.3.
Thank you all in advance...Hi,
please check the below links.
http://wiki.scn.sap.com/wiki/display/XI/Step+by+Step+Mail+To+File+Scenario - Mail to File
http://www.riyaz.net/sap/xipi-configuring-the-sender-mail-adapter/90/
Regards
srinivas -
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 configuration with attachment
Hi,
I read the below blog regarding the mail adapter
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
I have the same requirement but the attachment file is not an XML, it is CSV file so in the module tab if I change like below is it enough?
TRANSFORM swap.keyValue attachment; filename=u201DMailAttachment-1.csvu201D (I think MailAttachment-1 is the file name, am I correct?)
If I change like above is it ok? or any other thing is required, Could you please give me the inputs
Thanks
RameshI have the same requirement but the attachment file is not an XML, it is CSV file so in the module tab if I change like below is
it enough?
PayloadSwapBean will ensure that the input to the mapping is from the attachment.....in the blog the attachment is in XML format and hence there was no need for any conversion.....yours is however a CSV file so you need to convert it to XML first and then do the further processing.....you can either use the MessageTransformationBean as shown in this blog:
/people/gabrielsagayaselvam.panneerselvam/blog/2009/08/31/solve-key-field-problem-using-structplain2xml-in-messagetransformationbean
Or write your own module code for the conversion.
Regards,
Abhishek. -
Sender Mail Adapter configuration connection timed out
Hi All,
I am setting up a simple sender mail scenario to test if my mailadapter works.
But I receive a error message in the Sender Communication Channel I receive this error:
"exception caught during processing mail message; java.net.ConnectException: Connection timed out: connect"
I tested File Sender to Mail Receiver Scenario it worked fine.
But Sender Mail to File Receiver is not working and giving above exception.
Mail Sender SetUp
pop://xx.xxx.xx.xx
In User and Password I have given my Lotus Notes Server user & password credentials
Pls suggestHI Rachit,
Have you seen the thread
Sender Mail Adapter
There it is mentioned that the Lotus notes mail id shoudl be POP3 enabled. Try doing that
Regards
Suraj -
Receiver file adapter - support for attachments
Hi,
Is it possible that the reciever file adapter can process a message with attachment and generate two files, one for the main payload and the other for the attachment?
Thanks,
AmolAmol,
Only File Sender adapter is capable of handling attachments not the receiver.
http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/a20c4cfea96b498b1e1af3f32f0670/frameset.htm
Regards,
Jai Shankar
Maybe you are looking for
-
Please Help! Ready to throw my iPhone out the window!
First time posting on the forums but it's gotten to the point where my phone isn't even usable and I either need some answers or a good excuse to smash it. So here's the story: I got my iPhone 3G (black, 16GB) in September (I think), last year. The p
-
But when I use Lightroom5 or PSE11 it don't work if I edit the pictures. Whituot changes it works. Why???
-
Error accessing Name Server Configuration
Hello, I have installed WebAS 6.40 SP11 and deployed JDI SP11 on a single stand-alone machine, which is configured as Landscape and Name Server. When I try to access the Name Server Configuration in the DTR I get a "Server not found" error. The URL i
-
Dear Guys We are printing a smartform having employee pictures. Pictures are printing correctly in balck and white but when we use color printer it changes 90 dgree down up. Any solution.
-
Can I transfer apps to my daughter's iPod Touch??
I had an iPod Touch that both my daughter and I used so I had lots of kids games on it. I lost this iPod and got a new one. When I got my new one I downloaded all those apps again without any problems. I have now found that old iPod Touch so I gave t