Mail adapter problemas

Hi.
I want to send and email from XI to an address that comes in the payload. This payload has also information that has to be sent as an attachment in the email.
If i use Michal's solution os 'mail package', i can't add the attachment of the info because the structure of the mail donesn't allow to add more fields.
Does any other SP that allow this? I'm actually in SP13
If i had to use Michal's solution  is there any way to send the content as the result of many lines?
Regards

hi,
>>>>If i had to use Michal's solution is there any way to send the content as the result of many lines?
you can do something like this if you need to use
message mapping: 
- create a user function and put all lines
(in a loop) to one string
String manyLines = "I" + '\n' + "love" + '\n' + "the XI";
then just map the string to content tag in the mail
and you'll see many lines in your mail
>>>>Does any other SP that allow this? I'm actually in SP13
from SP14 you can set it like this:
/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
and you can use the whole message and not only one tag
(when you send to mail adapter)
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>
Message was edited by: Michal Krawczyk

Similar Messages

  • Sender Mail Adapter problem

    Hi,
    I am having problems to get my sender mail adapter running.
    I configured it with the following parameters:
    <i>Transport protocol: POP3
    Message Protocol: XIALL
    Adapter Engine: Integration Server
    URL: pop://server
    username + pw
    poll intervall: 1 Min.</i>
    The adapter is active and if I look into the adapter monitoring everything seems to be fine (green light).
    But the adapter doesn't poll the messages from the mail account and I cannot see any activity in the message monitoring.
    If I try the same configuration with Thunderbird everthing works fine. Also my receiving mail adapter works without any problems for the same account.
    Do you have any idea what the problem could be or how I could find out what my mail adapter is doing?
    Thanks,
    Andreas

    Hi all, hi Andreas,
    have you solved you problem? Could you please describe how you did it.
    I have the same situation and I haven't any ideas how can I manage it.
    I checked all parameters and compared they with documentation. Everything seems to be ok.
    I didn't see any messages in the message monitoring, but in the chanel monitoring I found follows:
    exception caught during processing mail message; java.net.ConnectException: Connection refused: connect
    I tried the same configuration with email client and it worked. I tried change POP on IMAP with URL imap://server/folder. It didn't work also.
    Could you please help me?
    Thank you in advance,
    Anna

  • Receiver mail adapter problem

    I am doing File -XI-Mail scenario.I am able to pickup the file but don't receive any mail.In RWB in communication channel monitoring I can see the error log for receiver mail adapter.The error is
    "failed to send mail: java.net.SocketException: Network is unreachable: connect"
    The configuration parameters I am using are:
    Transport Protocol:SMTP
    Message Protocol:XIALL
    URL:smtp://Outlook server host
    Userid:xxxxx
    PWD:xxxxxx
    I am at client network and the my outlook server is in my company network which we connect using VPN from client.Is this could be the reason for this error?
    Please let me know if someone has come across such error.
    Thanks,
    Rekha

    hi,
    >>>"failed to send mail: java.net.SocketException: Network is unreachable: connect"
    probably there's no communication between your XI server and mail server machine and XI server cannot access the mail server
    you need to report it to your network admin so it will allow the connection
    or he will set up a mail server on the XI server machine
    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>

  • Mail Adapter Problem

    Hi All
    I have setup a sender/receiver mail adapter. If I send mail to, or receive mail from an email address which does not exits on our mail server, I get no error, but neither XI nor the other recipient receive the mail.
    Any ideas here, or am I just doing something wrong?
    Thanks in advance
    Clinton

    Yes, I have tried this and it is not sending to addresses outside of my company addresses.  Is there anything I can check why not sending to any other addresses. I am using the same mail server address in the receiver adapter as that I am using in my Outlook, and I am able to send from Outlook to other email addresses outside of our company.
    My  from: [email protected]
           to   : [email protected];[email protected]
           subject: XI File
    from this it is only sending to shobna@companyB and simply without any errors not sending to john@companyB....
    and the same with my sender mail adapter. It does not accept any mails from companyB, but when any account from companyA sends to XI, it takes it into XI and delivers to the receiver.
    Help please, this is really driving me crazy
    Thanks
    Clinton

  • Mail Adapter Problem --- Unable to save deleted messages

    Hi All,
    I'm using a sender mail adapter.
    The XI adapter is polling the mailbox properly.
    I have choosen the option <b>Delete Messages Once Read</b> and I have also mentioned a folder for the deleted messages.
    But the messages after processing are deleted from the inbox and not being moved into the folder i specified for <b>deleted</b> messages.
    Request you ppl to help me out!!
    Cheers!!
    Sidharth

    Sidharth,
    Where have you created the folder?
    ---Satish

  • SEnde Mail adapter problem from txt to xml

    Hi All
    I have the following scenario - Mail->XI->RFC.
    My interface keep crashing because of mapping errors. The attachment I am receiving from 3rd party like follow:
    ENG_TYPE|INDUST_NO|COMPANY_NUMBER|SURNAME|INITIALS|NAMES|REGISTERED|MALE|EXPERIENCE|RACE|MARITAL_CODE
    V|A0359214|137871|MASSANGO|J|JOSE|2007/01/18|1|458|A|7|4|1953/01/06|SHANGAAN|STANDARD
    V|A0359214|137871|MASSANGO|J|JOSE|2007/01/18|1|458|A|7|4|1953/01/06|SHANGAAN|STANDARD
    V|A0359214|137871|MASSANGO|J|JOSE|2007/01/18|1|458|A|7|4|1953/01/06|SHANGAAN|STANDARD
    V|A0359214|137871|MASSANGO|J|JOSE|2007/01/18|1|458|A|7|4|1953/01/06|SHANGAAN|STANDARD
    This is also how the data come into XI, and then the mapping crashes, how do I change to XML for the mapping to no crash.
    I cannot seem to find anything on the module configuration to work for the Sender Mail adapter.
    Thanks
    Clinton

    Hi,
    1. You can use MessageTranformBean to convert the Text to XML.
    Please look into this article for a demo on this,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    it talks about JMS but the messagetransformbean can be used for Mail adapters as well.
    Regards
    Bhavesh

  • 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 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

  • 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.

  • Mail adapter multipart message problem

    Hello everyone.
    I'm experiencing problem with receiver mail adapter. In XIPAYLOAD mode (keeping attachments, use mail package, content encoding - none) messages that has multipart mime type (multipart/alternative exactly) are processing strange way (messages are made from MS Outlook). XI keeps service information and change  some symbols words become  unreadable. For example.
    --_000_135E4C842D542241894122FD84C52E1D4134A33A81mail2itransit_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello world! This is text of multipart message! --_000_135E4C842D542241894122FD84C52E1D4134A33A81mail2itransit_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
    Hello world! T= his is text of multipart message!
    000135E4C842D542241894122FD84C52E1D4134A33A81mail2itransit_
    You can see T= his instead of This. And also why in main payload (<Content> field) it keeps info about all parts of  whole message.
    Attachments are kept correctly.
    Any suggestions how to avoid this problem and keep just useful info (just text with correct symbols)?
    I'm running XI 7.0 SP18.
    Thanks in advance.
    Edited by: Yaroslav Isachenko on Mar 24, 2010 2:31 PM
    Edited by: Yaroslav Isachenko on Mar 24, 2010 2:42 PM

    An OSS would not help, as this is an Outlook issue.
    As far as i know, multipart/mixed works with all mail systems. maybe you give a try?
    Could you post the first lines of your entries in Content tag and the entry and content-type also?

  • Problem Mail-Adapter attachment with specified name

    Hi,
    We have the following scenario:
    We have some EDIFACT-suppliers which we have to connect over Mail-adapter.
    We have to fullfill several specifications by sending the mail.
    So we have to create a specific filename for the EDI-attachment and the subject. Therefore I used the adapterspecific attribute THeaderSUBJECT, which we set in Mapping. This works fine.
    Now the problem: We have to send only the payload-document as attachment of the mail with the same name as the subject of the mail. So we can't use the keep-attachment flag because then all attachments of this message would be sent in the mail.
    How is it possible to send only the payload as attachment without any other documents and with specified filename in the attribute THeaderSUBJECT?
    Has anybody an idea how to solve this problem?
    Regards
    Thorsten

    Hi,
    I have found a solution.
    In a new module I copy the original paload to the payload of a new message object without attachments.
    After calling this module I call the standard module MessageTransformBean to transform the payload into the attachment of the message.
    Here the code of my module:
    String fileName = msg.getMessageProperty("http://sap.com/xi/XI/System/Mail","THeaderSUBJECT");
    // Generate new message object
    Context ctx = new InitialContext();
    ConnectionFactory cf = (ConnectionFactory) ctx.lookup(com.sap.aii.af.ra.ms.api.ConnectionFactory.JNDI_NAME);
    MessageFactory factory = cf.createMessageFactory("XI");
    Message msgnew = factory.createMessage(msg.getFromParty(),msg.getToParty(),msg.getFromService(),msg.getToService(), msg.getAction());
    msgnew.setConversationId(msg.getConversationId());
    msgnew.setDeliverySemantics(msg.getDeliverySemantics());
    msgnew.setCorrelationId(msg.getMessageId());
    msgnew.setMessageProperty("http://sap.com/xi/XI/System/Mail","THeaderSUBJECT",fileName);
    String contentType = new String("text/plain;name="" + fileName + """);               
    // Copy original message to the new message
    XMLPayload payload = (XMLPayload)(msg.getDocument());
    payload.setContentType(contentType);
    payload.setDescription("file");
    payload.setName(fileName);
    msgnew.setDocument(payload);
    Now it works like it should work.
    Regards
    Thorsten

  • Problem with mail adapter?

    Hi All,
    I developed MailAdapter and set all the initial parameters required to run the Adapter..it is working fine and i am even getting all the mails what i have in my mail box, but the problem is i could not able to read those mail messages..when i click on any one of the message, it is giving me anerror message saying that " Cannot open in desired mode "...this is the problem..i am unable to trouble shoot it...can any body help me...
    Thanks in advance
    regards
    krishna

    Hi Michal,
    I've tried your weblog
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    but in the adapter monitoring follow errors always appeares:
    not intiliazed: failed to initialize the channel: com.sap.aii.messaging.util.URI$MalformedURIException: no scheme
    Can you help me?
    Thanks
    Regards
    Stefan

  • Mail Adapter Module Problem!

    Hi All
    I m facing a problem in implementing a custom mail adapter module.
    The scenario is to set the content type based on the file type. eg: if the file being sent is a pdf then content type should be "application/pdf".
    I hope the scenario is clear, please feel free to ask for clarifications.
    awaiting your replies.
    Regards
    Kapil

    Hi All
    I am able to fetch the file name now and set the content type based on the file name. But I m not able to change the name of attachment of mail. For reference, I m pasting the code here, please suggest how to do the latter part
    try {
                         // CS_GETCHADAT START
                         cid  = moduleContext.getChannelID();
                         Channel channel = new Channel(cid);
                         // Example to access a channel configuration parameter in a module: String someParameter = channel.getValueAsString("YourAttributeName");
                         // CS_GETCHADAT END
                        fileName = msgg.getMessageProperty("http://sap.com/xi/XI/System/File","FileName");
                        Payload attachment = msgg.getAttachment("MainDocument");
                             StringTokenizer st = new StringTokenizer(fileName, ".");
                             while(st.hasMoreTokens()){
                                  extension = st.nextToken();     
                        Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS, "RenameFile: filename " + fileName);
                        Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS, "RenameFile: extension " + extension);
                             // create new payload
                             Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS, "RenameFile: attchmntName " + attachment.getName().toString());
                             //provide attributes and content for the new payload
                             attachment.setName("Attachment :" + fileName);
    //                         msgg.setMessageProperty("http://sap.com/xi/XI/System/File","content-description",fileName);
                             attachment.setContentType("application/" + extension );
                             inputModuleData.setPrincipalData(msgg);

  • 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 in : Reciever Mail Adapter.

    Hi all,
    In my scenario  file --> Mail
    this scenario is worked fine but now it showing the following error in Adapter monitoring.
    error occured: [2006-01-19T04:59:02Z] unable to call the mailer; com.sap.aii.messaging.srt.BubbleException: Failed to call the endpoint [null "null"]; nested exception caused by: java.net.SocketException: Software caused connection abort: connect
    Please help me about this
    Thanks in Advance,
    Dhanabal T

    Hi Dhanabal,
    these links should help you clear your doubts regarding Configuring a Receiver Mail Adapter and possibly find the cause for your error.
    http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/8c/607fe4756b654ab9f420097c29f6e9/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/5d/112d20f6ce6c46ba66afb98d278fbd/frameset.htm
    Regards,
    abhy

Maybe you are looking for

  • How do I set up an account to receive email from my SMTP relay Server. Have I made a SMTP Server config error?

    Hi, How do I set up an account to receive email from my SMTP Relay Server? I've setup the SMTP feature and set my Server to use anonymous authentication. Things appear to look ok. But I can't connect make a test connection to it when I am trying to a

  • How to genrate Report for Result of SNP & PP/DS ?

    Hi All,      Currently i am working on SCM 5.0 Version.    I need to prepare a Report for Product Wise Planned Order or Production Order & Resource Wise Planned Orders or production Orders.   Can anyone tell me How can achive the above requirement? T

  • Question on MDX

    Dear Experts, Can any body explain me wht is MDX & importance in BPC. And how can i execute this below code. IIF(Account.H1.CurrentMember is Account.H1.http://All Account.H1 And Account.H3.CurrentMember is Account.H3.http://All Account.H3, (Account.H

  • I want to do upgrades but my computer reports I do not have permission, now what?

    <blockquote>Locking duplicate thread.<br> Please continue here: [[/questions/866906]]</blockquote> security and stability update, do not have system permissions to install it. I do not know what or how to correct this

  • Larger Preset Dropdown Window in MV for Effects Rack

    I do a lot of work in Multitrack and save many Effects Rack presets. The window for the drop-down menu for these presets is tiny! Because the view of the window is not scalable (I can't make the stupid thing any wider) I have to use an annoying type