Problem with Sender Mail Adapter

Hi experts,
I'm developing a Mail-XI-RFC scenario and have a problem in the mapping. I have created a MI based in the structure of the attachment of the mail. I have a mapping that does xml->RFC and tests OK. When I send a mail to the account of the sender adapter, the system generates two payloads, the 'MailMessage' and the 'MailAttachment-1' that is the xml to map, but I have an error in SXM_MONI 'Cannot produce target element /ns0:...RFC name'.
The Sender Adapter configuration uses message protocol XIPAYLOAD, I have checked Mail Package, base 64 and keep Attachments. Interface namespace is the same as the xml and default interface name is the message interface created of type my xml.
What is wrong?
Best Regards,
Alfredo Lagunar.

In this case you need to use payloadswap bean for swapping the payload and attachment
http://help.sap.com/saphelp_nw04/helpdata/en/70/f3cbad30ee479cb15672219f3405f0/frameset.htm
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step check this
Rajesh
Edited by: Rajesh on Feb 4, 2009 2:52 PM

Similar Messages

  • Problems with sender mail adapter

    Hi XI Gurus
    We have gone through a lot of blogs and searched a lot on the XI forum on how to configure the sender mail adapter with attachments but we still can't get it working at our site. Here are the issues -
    1. When we define our data type in the IR as let's say out_email_dt with namespace "http://www.xyz.com" the mapping fails. In the monitor(SXMB_MONI) the message from the sender mail adapter comes in like this -
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    <xim:Mail xmlns:xim="http://sap.com/xi/XI/Mail/30" encoding="quoted-printable">
      <Subject>test 10</Subject>
      <From>"Test User" <[email protected]></From>
      <To>"XI Test Account" <[email protected]></To>
      <Content_Type>text/plain;charset="us-ascii"</Content_Type>
      <Date>2007-05-08T05:34:38Z</Date>
      <Message_ID><[email protected]></Message_ID>
      <Content>This is the voice of the Mysterons=0A</Content>
      </xim:Mail>
    Question 1 - do we have to define our data type as "Mail" under the namespace "http://sap.com/xi/XI/Mail/30".
    Question 2 - If you look at the content of  the <From>,<To>,<Message_ID> tags you will see that there is content with <> tags which is causing the message mapping to fail. Is there a way of telling XI that they are not xml tags but part of some other tags?
    2. Also the PayloadSwapBean doesn't seem to swap the payload to be the attachment.
    3. Can we use masks in the PayloadSwapBean for attachment names like "." as we don't know what the file name is going to be as we have multiple partners who will be sending emails to the same address and with different file formats.
    Thanks in advance.
    Salil

    Hi,
    >>>>Question 1 - do we have to define our data type as "Mail" under the namespace "http://sap.com/xi/XI/Mail/30".
    do exactly as shown in my blog:
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    >>>>2. Also the PayloadSwapBean doesn't seem to swap the payload to be the attachment.
    do similarly as shown in my blog:
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    the everything will work
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Problem polling Inbox with Sender Mail adapter

    Hi,
    I have a funny problem with Sender Mail adapter (IMAP Protocol)
    It was working fine previously.
    Now, when I poll the Inbox, 2 things happen. After re-activation:
    1. If there is a new mail in the Inbox, the Communication channel marks the mail as read, but still keeps reading the same mail into XI.
    2. If there are no new mails in the Inbox, it reads the already read mails in the Inbox one by one. So all old mails start entering XI.
    This problem exists only with the Inbox. It works fine with other folders for the same mail ID.
    Any inputs as to why this is happening?
    Regards,
    Puloma.

    Hi,
    We re-started the server and problem was solved. But we don't know why the Adapter Engine was behaving erratically.
    Regards,
    Puloma.

  • Issue with Sender Mail Adapter Configuration

    Hi All,
    We are PI 7.1.1 version. We are unable to see the following parameters in the sender Mail adapter:-
    Default XI Parameters : Default Interface Namespace and Default Interface Name.
    Also, we are geeting a Nullpoinetr exeception in RWB.
    Kindly provide your suggestions.
    Thanks & Regards,
    Navneeth K.

    Hi.
    I have faced the sane problem. My solution is to use DynamicConfigurationBean module:
    AF_Modules/DynamicConfigurationBean     Local Enterprise Bean
    with
    parameters:
    message.interface=<Your Interface Name>
    and
    message.interfaceNamespac=<Your Interface Namespace>
    Note that last parameter name is not interfaceNamespace but interfaceNamespac .
    It would be great if anyone will explane were Default XI parameters gone and how we can get them back.

  • Problem wiht sender mail adapter.

    Hello.
    I have a mail to RFC scenario.
    There sender mail adapter fails if the mails in the inbox is encoded in specific formats.
    I think the mail adapter does not understand this encoding.
    Below is the error i got.
    error occured: [2008-09-08T08:22:25Z] 5 new messages found; processing message 1exception caught during processing mail message[1]; java.io.UnsupportedEncodingException: utf-7; processing message 2exception caught during processing mail message[2]; java.io.UnsupportedEncodingException: utf-7; processing message 3exception caught during processing mail message[3]; java.io.UnsupportedEncodingException: utf-7; processing message 4exception caught during processing mail message[4]; java.io.UnsupportedEncodingException: utf-7; processing message 5exception caught during processing mail message[5]; java.io.UnsupportedEncodingException: utf-7; action[s] taken
    Is there a solution 2 overcome this problem.
    I tries to use a module called "TextCodepageConversionBean" but it was not of much use.
    Please help.
    Thanks,
    Vignesh

    HI
    Mail adapter does not understand "UTF-7" as shown in the error.
    Mail adapter supports only
    base64
    Quoted-Printable
    http://help.sap.com/saphelp_nw70/helpdata/EN/23/c093409c663228e10000000a1550b0/content.htm
    If you want to make your adapter more than this. Then create a custom module using open libraries that will allow you to read many Encoding standards.
    Thanks
    Gaurav

  • Problem with sending mail throgh java mail api

    hi folks,
    We are having problem regarding sending mail using java mail api.
    we are using msgsendsample.java file from demo folder contained in javamail-1.3.3_01 folder.
    we are using following command at dos prompt.:
    java msgsendsample [email protected] [email protected] smtp.mail.yahoo.com false
    It gives following Exception:
    --Exception handling in msgsendsample.java
    com.sun.mail.smtp.SMTPSendFailedException: 530 authentication required - for hel
    p go to http://help.yahoo.com/help/us/mail/pop/pop-11.html
    at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1
    333) at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:906)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:535)
    at javax.mail.Transport.send0(Transport.java:151)
    at javax.mail.Transport.send(Transport.java:80)
    at msgsendsample.main(msgsendsample.java:93)
    ** ValidUnsent Addresses
    [email protected]
    Thanking in Advance...
    Please give us guidance to any alternate solution if exists.

    hi
    the smtp server u are using should allow u to send mail to other smtp server like if u r sending mail to yahoo account u have to use yahoo smtp server only .....
    bye

  • FireFox will not send AOL mail, It tries about 5 minutes, then says there is a problem with sending mail.

    Hi
    I'm working on a Mac with 10.4.11 and using AOL as my mail, for the last 2 days I can't send mail from my FireFox, I can receive but not send.
    I'm using FoxFire 3.6.10; I've tried cleaning cache, but it didn't help.
    I don't think it is my system, because I can send mail on the Safari.
    Thanks for any help you can give me.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • Is anyone having problems with sending mail today?

    I am having problems sending mail today (as is my husband). I am using the Mail program with my iMac. I am getting constant requests for passwords and sending my in iCloud account just keeps spinning. My husband received an email I sent him although on my computer it was still in the outbox and spinning. Is this network wide or my ISP.

    Are you guys by anychance on Optimum Online? My family is having the same issue; they are able to access all services on their 3G devices, and I can access their accounts from my home, which is not on Optimum -- only having this issue through Optimum's cable internet.

  • Problem with Send Mail data

    Hi all,
    I have a Send mail step created which passes &REQUISITION.VALUATIONPRICE& and &REQUISITION.QUANTITYREQUESTED& from bus2009 into the description of the Send mail
    example &REQUISITION.VALUATIONPRICE&         120.00
                 &REQUISITION.QUANTITYREQUESTED&  1,000.000
    When I test in SWDD, the data shows in the Workflow log (View With Technical Details)
    ValuationPrice 120.00
    QuantityRequested 1,000.000
    Also, when I check it in the work item display it shows as
    ValuationPrice 120.00
    QuantityRequested 1,000.000
    But when I use tcode SCOT SAPconnect: Transmission Requests
    the data is corrupted. Notice the decimal and period are reversed.
    ValuationPrice 120,00
    QuantityRequested 1.000,000
    Has anyone had this issue before?  Any info will help.
    Thanks
    Mike

    Check in SU01d the settings of decimal values set for the user.
    I faced exactly the same problem where in workflow log it was showing correctly and when the email is sent, the format was getting changed.
    Change the settings appropriately in SU01 for the user to whom the email is being sent..
    Good Luck.
    Regards,
    PR.

  • Problems with sending mail by javaMail with connection by proxy.

    I want to sand mail by javaMail, from computer with connection to Inthernet with proxy (need login and passsword). There are DNS in connection (window's) to LAN.
    When I try to send mail, exception occured: javax.mail.MessagingException: Connection refused: connect; nested exception is: java.net.ConnectException: Connection refused: connect
    But NetBeans, for example, connect seccessfully.
    My code is:
    Properties props = new Properties();
    props.setProperty("mail.smtp.host", "smtp.mail.ru");
    props.setProperty("mail.smtp.port", "2525");
    props.setProperty("mail.smtp.auth", "true");
    props.setProperty("mail.user", "mymail");
    props.setProperty("mail.password", "password");
    Session mailSession = Session.getInstance(props, null);
    try
    Transport transport = mailSession.getTransport("smtp");
    MimeMessage message = new MimeMessage(mailSession);
    message.setHeader("X-Priority", "1");
    message.setSubject("Message");
    message.setContent(messageText, "text/plain; charset=UTF-8");
    message.addRecipient(Message.RecipientType.TO,
    new InternetAddress(recepient));
    message.setFrom(new InternetAddress("[email protected]"));
    transport.connect("mymail","password");
    transport.sendMessage(message,
    message.getRecipients(Message.RecipientType.TO));
    transport.close();
    catch(Exception ex)
    System.out.print(ex);
    In Java control panel(Java Control Panel -> Network Settings) I check checkbox "Use Browser settings"
    And try to add code before sendng:
    System.setProperty("java.net.useSystemProxies", "true");
    System.setProperty("http.proxySet", "true");
    System.setProperty("http.proxyPort", "192.168.1.1");
    System.setProperty("http.proxyUsername", "username");
    System.setProperty("http.proxyPassword", "password");
    System.setProperty("http.proxyAuthType", "basic");//System.setProperty("http.proxyAuthType", "digit");
    But it don't work.
    Edited by: CAPbl on Mar 14, 2010 10:07 PM

    I novice in network programming and javaMail. Can you give me example or link to it? Thank you
    Edited by: CAPbl on Mar 15, 2010 3:29 AM

  • TS3899 Problem with sending mail from iPhone

    I have three mail accounts (Exchange, POP, IMAP) on my iPhone 4 with iOS 7.0.4. All works fine for receiving mails, but sending does not work from any of them. I write mail, tap send and it seems to go (with the  sound) but never reach the reciever.
    I have the exact same account setup on the family iPad and there sending mails works fine.
    Any suggestions /solutions ?

    Sorry to intrude, but figured I'd ask. I'm having the same issue (emails I reply to and send via my phone disappear entirely -- no evidence on my comp either -- and I'm never sure if the intended recipient ever received them), but in trying to fix this issue, I discovered I'm actually missing the "Sent Mailbox" option entirely. It's not under Settings > Mail, Contacts, Calendars > Gmail > Account > Advanced > Mailbox Behaviors" -- only Drafts, Deleted and Archive are. Any idea where it is? How to get it back (assumign it was ever there to begin with)?
    I have an iPhone 4S w/ iOS 7.

  • Problem with sending mail from SAP (ECC6.0)

    Hi guys!!
    I am facing problem in sending email from SAP to outlook.
    I've checked SICF and SCOT configuration and they are same as my other server thorugh which i am able to send the mail.
    I use SBWP to send the mail. after i send i do not get any error message, and when i check it in outbox, there is a yellow triangle in the status which means "send process still running" . so the sending mail is taking hours. i've set the frequesncy of my B/G job RSCONN01 to 10 minutes. i checked and this job is running successfully every 10 minutes.
    Please suggest what could be the possible reason and what can i do to solve this issue.
    Thanks,
    Sheetal Sharma

    Hi,
    First of all ask your IT (Exhchange) guy to check port number 25 is open or not for communincation, if not open ask him to open.
    you can check this yourself by doing TELNET
    steps to do telnet :
    logon to your application server,
    go to command prompt
    and type  TELNET <IP address of email server> 25
    If it prompts some message like this
    "exhange.domain.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.18 30 ready at  Mon, 16 Jun 2008 16:25:41 +0300. "
    then it means your port 25 is open for communication.
    Regards,
    Abuzar.

  • Problem with send mail

    Hi,
    i want to send email when an user modify informations in HR infotype so i put some code into PAI, i've created a module send_mail, and his this last i put a FM 'Z_HR_SEND_MAIL_PROCESS'.
    The function 'Z_HR_SEND_MAIL_PROCESS' work fine, i receive my email correctly. Nice.
    Now when FM 'Z_HR_SEND_MAIL_PROCESS' is call by my PAI, i don't receive email, debug is correct, no dump, no error, parameters are correct...
    I don't undertand.
    Thanks for help.
    Regards.
    Message was edited by: tafkap
    Message was edited by: tafkap

    Thanks for answer.
    In fact, i use FM send mail from /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    It's work fine and at the end of FM we can find :
    Send document
          CALL METHOD send_request->send( ).
          COMMIT WORK.
    Yes i test FM Z_HR_SEND_MAIL_PROCESS in SE37, it's work fine. Parameters are good.
    When i test FM, email is not send immediately because :
    send_request->set_send_immediately( 'X' ).
    so email is in SCOT, i must Start Send Process.
    Thanks

  • HT4863 Problems with sending mail

    I have started getting the following message when trying to send an email
    "You have exceeded your daily sending limits. See http://support.apple.com/kb/ht4863
    Select a different outgoing mail server from the list below or click Try Later to leave the message in your Outbox until it can be sent."
    I received this message yesterday and again today. The point is I have never sent 200 emails in one day - ever! I have iCloud as the SMTP server. I can feceive incoming mail. Any suggestions?

    Maybe your provider decided to block SMTP-ports on his network to avoid worms to spread using their own SMTP-engine. If the SMTP-server supports connections on port 587 instead of 25, try changing the port. If not, contact your ISP. Maybe they offer a SMTP-relay for customers on their network allowing to send mail using any email-address.

  • Hi...Problem with sending mail from SAP

    Hi all,
    My problem is:
    I have created a distribution list which contains Internet userids & SAP Userids.
    In the code I have written the follwing code for receiver list
              reclist-receiver = zwfi_yefap_paypr-list1."it contains distribution list name
              reclist-rec_type = 'C'.
              reclist-express = 'X'.
              APPEND reclist.
    I have passed this to function module SO_NEW_DOCUMENT_ATT_SEND_API1 receiver parameter.
    when I run the program SAP user id's are getting mails but  not  internet userrids.
    What couldbe the issue .
    Please let me know what could be the reason.
    Thanks in Advance.
    Raja

    Hello,
    U need to submit the report
    Start the send process
    SUBMIT rsconn01
    WITH mode = 'INT'
    WITH output = ' '
    AND RETURN.
    If useful reward.
    Vasanth

Maybe you are looking for