Receiving Mail - Using attachement and adapter attributes

Hi all,
I'm trying to solve the following problem:
- I receive a file via mail adapter as attachment
- The content of the file is plain text, no csv or XML
- For mapping, I need a) the content of the file b) metadata like sender of the mail, date/time of mail etc.
I tried to use mail package and PayloadSwapBean. Now I have the situation, that not everytime the <content>-Tag contains the content of the attachement:
-If the message text of the mail is empty, <content>-Tag contains the content of the attachment (perfect!)
-If the message text of the mail is empty, mapping throws exception. I suppose, that pure attachement (not in the mail package format) is input for mapping
If I try to use adapter-specific attributes, Mail adapter throws error (so message does not reach integration engine). I already updated the mail adapter metadata in the IR (cf. SAP note 936552), as we are on SP16. It seems as if still some tags can not be deserialised by the SOAP-Entry of the integration engine.
Has someone an idea how to solve the situation?
Kind regards,
Torsten
Message was edited by: Torsten Engel

Well, the problem seems to be with the IMAP server
(not postfix).
I simply don't have an INBOX file were my IMAP server
seems to deliver the e-mail.
This seems to be part of our problem communicating. An IMAP server doesn't deliver email. It's what your mailreader contacts to view or deliver mail. You must be using OSX Server, I don't think there's an IMAP server for OSX.
When mail arrives at your Mac, two basic things happen. We lump them under the label postfix. The first thing is that the SMTP server accepts the mail. The second is that the local process "delivers" the mail. This can be difficult to set up, but the main thing is to put the local delivery path in the alias map file you set in /etc/postfix/main.cf. This is /etc/aliases by default.
To read mail, your mailreader can simply open the mailbox where the file was delivered. /usr/bin/mail will work fine. Fancier mailreaders like Apple Mail use protocols like POP3 and IMAP4 to retrieve mail from remote servers. But this case is different. IMAP seems like overkill since everything is local. I would try putting the alias to the directory that Mail uses. But then, you never said what your mailreader was, so I don't know.
I think we can solve this, but we need to get over some confusion first.
-Phil

Similar Messages

  • Receive mail with POP3 and saving to file using XI

    Hello! I'm new to XI, could you help me with this "simple" task: Receive mail with POP3 and saving to file.
    Thanks!

    Hi,
    you will need:
    Mail Sender Adapter
    http://help.sap.com/saphelp_nw04s/helpdata/en/23/c093409c663228e10000000a1550b0/frameset.htm
    and File Receiver Adapter
    http://help.sap.com/saphelp_nw04s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    Regards
    Patrick

  • Not receiving mail sent to and from my own accounts! using latest OS8 and X10.9.5.Using Apple Mail account. Used to be able to do this!

    Not receiving mail sent to and from my own accounts! using latest OS8 and X10.9.5.Using Apple Mail account. Used to be able to do this!

    My system is OS8 and X10.9.5

  • Can receive mail using comcast but not using mail on ipad

    I can receive and send mail using my comcast app but can only receive mail using the mail app but not send.

    Been there and done that with the Comcast email account on my iPad. Specifically ...
    Check the outgoing mail server setting. Make sure that your username and password are in there.
    Settings>Mail, Contacts, Calendars>Your email account>Account>Outgoing mail server - tap the server name next to SMTP and check in the primary server and make sure your username and password are entered and correct - even if it says that the password is optional.

  • HT5225 unable to send receive mail using Mail 2.1.3

    Ever since iCloud took over, I am no longer able to send/receive mail using Mail 2.1.3 on my 10.4.11 version.  I didn't think it would affect it.  Someone please help as to how I can rectify the issue!

    Hi,
    Please review the following note:
    Note: 371830.1 - Notification Mailer Does Not Start, Remains In Status Starting
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=371830.1
    If the above does not help, I suggest you run "Workflow Diagnostics" test and see if it returns any error/warning messages.
    Note: 274764.1 - Oracle Workflow Cartridge Workflow Java Mailer Setup Test
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=274764.1
    Note: 378281.1 - How Does One Verify The Notification Mailer Is Functioning Properly?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=378281.1
    Regards,
    Hussein

  • Send mail with attachment and more recipients

    Hi to all,
    I have this procedure :
    PROCEDURE SPEDISCI_MAIL
    Mittente IN VARCHAR2,
    Destinatario IN VARCHAR2,
    Oggetto IN VARCHAR2,
    Messaggio IN VARCHAR2
    IS
    mailhost VARCHAR2(40) := 'pippo.com';
    conn utl_smtp.connection;
    crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
    mesg VARCHAR2( 1000 );
    local_mittente VARCHAR2(2000) := mittente;
    BEGIN
    conn := utl_smtp.open_connection (mailhost,25);
    mesg:='Date:'||TO_CHAR(SYSDATE,'dd mon yy hh24:mi:ss')||crlf||
    'From:<'||mittente||'>'||crlf||
    'Subject:'||Oggetto||crlf||
    'To:'||destinatario||crlf||''
    ||crlf||messaggio;
    utl_smtp.helo(conn, mailhost);
    utl_smtp.mail(conn,local_mittente);
    utl_smtp.rcpt(conn,destinatario);
    utl_smtp.data(conn, mesg);
    utl_smtp.quit(conn);
    END;
    Can I send mail with attachment and more recipients?
    Thank you
    Silvia

    Consider using UTL_MAIL package:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_mail.htm
    (Note: it's not installed and configured by default, but the scripts are supplied with the Oracle database, see documentation for instructions)

  • HT1430 Since downloading updates for ios 6.0.1 can not send or receive mail on iPhone and iPad

    Since downloading updates for ios 6.0.1 can not send or receive mail on iPhone and iPad

    Is this on wifi or cellular data?
    Have you tried a reset? Hold down the home/power button until you see the apple logo and then release, then wait for the phone to boot back up.
    Have you gone into the email settings and making sure the password are still there?

  • I can no longer receive mail using the mail app? I have to go online instead - why?

    Hej some one,
    I can no longer receive mail using the mail app? I have to go online instead - why & what can I do?

    Check your smtp preferences in mail.app.
    See if mail.app's Connection Doctor has any useful info.  Does it's status indicate all is ok?  When you use it's Show Detail are there any (useful) error messages?

  • Difference between using Binding and Value Attribute

    what is the deference between using binding and value attribute, when I use binding attribute at the time of Value change listener is behaving like action listener,
    Ex:
    If I use value attribute, at the time of value change listener the component is not showing the result in the component but when I use Binding attribute it is happening automatically. So I want to know how the binding attribute is working.
    I know, at the time of binding attribute the component is creating an instance at the bean side, So even also how it is following the life cycle of the JSF Frame work, and also Please suggest me weather which one is better to use either Binding or Value?

    JNaveen wrote:
    If I use value attribute, at the time of value change listener the component is not showing the result in the component but when I use Binding attribute it is happening automatically. So I want to know how the binding attribute is working.You need to learn about the JSF lifecycle. The ValueChangeEvent is invoked after conversion and validation in the 3rd phase, while the model values are updated in the 4th phase. In the valueChangeListener method you normally use ValueChangeEvent#getNewValue() to get the new value after the change.
    I know, at the time of binding attribute the component is creating an instance at the bean side, So even also how it is following the life cycle of the JSF Frame work, and also Please suggest me weather which one is better to use either Binding or Value?Use the 'value' attribute to bind the value to the bean. Use the 'binding' attribute to bind the component to the bean. If you don't need to precreate the component or do other things than getting/setting its value, then there is no need for the 'binding' attribute.
    Read on those links if you want to know something more about the JSF lifecycle:
    [http://balusc.blogspot.com/2006/09/debug-jsf-lifecycle.html].
    [http://jcp.org/aboutJava/communityprocess/final/jsr252/index.html] (pick 1st download).

  • Receive a mail with attachment and send it as it is via Mail-receiver

    Hi,
    we have PI/7.0
    I have a scenario with a mail-sender.
    I get mails with attachments and depending on the subject I have to send some mails to an other mail-address via mail-receiver-adapter.
    My problem is, that I have to send it "as it was" - with all attachments (and the correct attachment names) and the original mail-body.
    I tried to check the checkbox "keep attachments": I got all attachments but the original mail-body was now an extra attachment (with the extension .xml).
    I don't wanna have this new attachment!
    What can I do?
    Thanx a lot!
    Regards
    Wolfgang

    Hi,
    I think quite simple
    message protocol: xipayload
    Use Mail package: NO
    Keep Attachments: YES
    Content encoding: <nothing>
    No extra modul
    I entered all address-informations (from, to,...) in the fields displayed after the checkbox for "use mail package".
    that's all.
    regards
    Wolfgang

  • I receive both My husbands emails and mine through my ipad. We both have gmail accounts.  His emails are coming down on the ipad but not mine.  I haven't received mail since Saturday and as we use the email for business I desperately need it.

    I receive both My husbands emails and mine through my ipad. We both have gmail accounts.  His emails are coming down on the ipad but not mine.  I haven't received mail since Saturday. We use the email for business I desperately need it and I don't have a laptop anymore as it is broken.   In my wisdom I desired to buy an ipad instead,  what a mistake.

    The iPad will support multiple Gmail accounts, but of course you have to set each one up individually.  Did you set up both accounts?  Go into Settings/ Mail, Contacts, Calendars to confirm both accounts exist.  If they do, also familiarize yourself on how to navigate between accounts to make sure you can view your Inbox.  You may also want to check your settings to make sure that you have the default account set up as you expect for Mail, Contacts, Calendar, and Notes (if you're using all those features).  That is important only when initiating something new, you have to have a default account to do such a thing so make sure the default is your account since it is your iPad (assuming that's what you want).
    Alternatively, install the free Gmail app and then use only his (or your) account with that app and use the standard iOS Mail app for the other account.

  • Receiver mail with attachment name by default

    Hello all,
    I have a scenario IDOC -> PI -> MAIL.
    In my output mail, i want,for example and by default, that my attachment's name is "document1.xml".
    I've checked the case 'keep attachments' in my CC receiver mail and tried to use the Payloadswapbean to change the name of the attachment but it isn't working !
    Is it the appropriate module that i use ? Or should i use something else ?
    Thanks for your help,
    JP
    Edited by: Jean-Philippe PAIN on May 27, 2010 1:57 PM

    In my output mail, i want,for example and by default, that my attachment's name is "document1.xml".
    Check the third example shown in this blog: /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    Applicable for Message Protocol = XIPAYLOAD without Mail Package
    Regards,
    Abhishek.

  • Sending Mail with attachment and preserving the order of attachment

    Hi Everyone!!!!!!
    My requirement is to send Email with attachment in the same order as they were attached by Sender while composing the mail. I want to preserve order of attachment in the mail and when receiver open a mail, the attached files should be reflected in same order as it was on sender side. In my application,the documents being upload are already in my database. So, user just requires to mark the corresponding check box and enter the Sequence number for each attachment. When he clicks on "SEND" button, the Source file is first written from database to OS level and then files are attached from source available on OS . The attached file name could be anything. Based on the Sequence number file should be attached and send. My current code works fine,but problem it is that the Sequence number is not preserved in my attachment . However, when I traced the output of FOR Loop by inserting it in a table " temp_trace" I found that the Sequence is preserved in the order that I want. So, I think that uploaded files are written on the Operating system in same order but they are not attached in same order. Below is the sample code that is I am using to attach file in email. Here, the user_sequence is the sequence number entered by user.
    for i in (select case when user_sequence is not null
    then trim(to_char(user_sequence ,'09'))||'_'||file_name||'.pdf'
    else ||'_'||file_name||'.pdf' end file_name ,
    file_src,length(file_src) len,cd.doc_id,PRIORITY from
    MIM_CLIENT_DOCS CD,(select DOC_ID ,user_sequence from table P_DOC_AND_user_sequence ) TEMP_TAB
    WHERE CD.DOC_ID = TEMP_TAB.DOC_ID order by case when user_sequence is null then 1 else 0 end, file_name)
    loop
    insert into temp_trace values(i.file_name);
    L_OUT := UTL_FILE.FOPEN(v_oracle_dir,i.file_name,'wb',32760);
    end loop;
    I want my output as
    1_first attachment.txt
    2_second_attachment.docx
    3_abc.sql
    _xxx.txt  ------------------ When sequence is not assigned by user That is null at last.
    Unfortunately, I am not getting attachment in mail in this sequence. Can anyone give me suggestion.
    Sorry for stuff essay and thanks in advance!!!!!!!!!!!

    >
    Please update your forum profile with a real handle instead of "974850".
    My requirement is to send Email with attachment in the same order as they were attached by Sender while composing the mail. I want to preserve order of attachment in the mail and when receiver open a mail, the attached files should be reflected in same order as it was on sender side. In my application,the documents being upload are already in my database. So, user just requires to mark the corresponding check box and enter the Sequence number for each attachment. When he clicks on "SEND" button, the Source file is first written from database to OS level and then files are attached from source available on OS . The attached file name could be anything. Based on the Sequence number file should be attached and send. My current code works fine,but problem it is that the Sequence number is not preserved in my attachment . However, when I traced the output of FOR Loop by inserting it in a table " temp_trace" I found that the Sequence is preserved in the order that I want. So, I think that uploaded files are written on the Operating system in same order but they are not attached in same order. Below is the sample code that is I am using to attach file in email. Here, the user_sequence is the sequence number entered by user.Always post code using <tt>\...\</tt> tags as described in the FAQ.
    for i in (select case when  user_sequence is not null
    then trim(to_char(user_sequence ,'09'))||'_'||file_name||'.pdf'
    else  ||'_'||file_name||'.pdf' end file_name ,
    file_src,length(file_src) len,cd.doc_id,PRIORITY from
    MIM_CLIENT_DOCS CD,(select DOC_ID ,user_sequence from table P_DOC_AND_user_sequence ) TEMP_TAB
    WHERE CD.DOC_ID = TEMP_TAB.DOC_ID order by case when user_sequence is null then 1 else 0 end, file_name)                               
    loop
    insert into temp_trace values(i.file_name);
    L_OUT := UTL_FILE.FOPEN(v_oracle_dir,i.file_name,'wb',32760);
    end loop;I want my output as
    1_first attachment.txt
    2_second_attachment.docx
    3_abc.sql
    _xxx.txt  ------------------ When sequence is not assigned by user That is null at last.
    Unfortunately, I am not getting attachment in mail in this sequence. Can anyone give me suggestion.I see no code that attaches anything to email messages. What code is used to do this? Why are the files being written to the file system?

  • Receive an email attachment and process it

    Hello all,
    could you please explain me, how can I process an email attachment, that comes into XI? My scenario is follows: I receive a mail with attachment into XI, search in attachment to which email this message should be forward and forward the modified message to receiver.
    I' ve done successful the similar scenario with java mapping, where an incoming IDOC was parsed and mapped to mail message with attachment. Outgoing mail structure was in this case follows:
    <?xml version="1.0"; encoding="UTF-8"?>
    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
        <Subject>=?utf-8?Q?Subject?=</Subject>
        <From>"mailSender"&lt;[email protected]&;gt;</From>
        <To>"mailReceiver"&lt;[email protected]&;gt;</To>
        <Content_Type>multipart/mixed; boundary="--AaZz"</Content_Type>
        <Content>----AaZz
            Content-Type: text/plain;         charset=UTF-8     
            Content-Disposition: inline
            Confirm with attachment.
            ----AaZz
            Content-Type: application/xml;
            name=Auftrag.xml
            Content-Disposition: attachment;
            filename=confirm.xml
            <?xml  version=&quota;1.0&;quot; encoding="UTF-8>
    </Content></ns:Mail>
    Now I try to repeat this, but I don't get such incoming structure from pipeline. I always see there two payloads: mailMessage and mailAttachment. Could anybody tell me, how have I to configure send channel to get such structure by receiving a mail into xi in xi payload? Is it possible? if no, than how can I handle with attachment of incoming mail message?
    thanks in advance

    Hi Anna !
    Try to do this:
    Send an email to the email account configured in the mail sender adapter, but avoid XI to pick it up. Instead, downloaded with your mail client (webmail or something like outlook). There should be an option to see the mail in RAW format, with all headers and content, sometimes refered as "original message". And try to find the headers related to the attachment, like the ones below as stated in the blog. Maybe in your case the header is a different one and payloadswapbean should be configured differently. And also be sure that your attachment is already in XML, if not, XI will not be able to send it to the integration engine for mapping.
    Regards,
    Matias.
    ps: please award points if helpful.
    --SAP_1c3f0981-6fe8-11da-82b2-000d601c4c42_END
    Content-ID: <[email protected]>
    Content-Type: text/xml;name="=?iso-8859-2?Q?abcdefg.xml?="
    Content-Disposition: attachment;filename="MailAttachment-1.xml"
    Content-Description: MailAttachment-1
    ?<?xml version="1.0" encoding="UTF-8"?>
    <ns0:inside xmlns:ns0="http://frik.com">
       <name>
          <nameone>somename</nameone>
       </name>
    </ns0:inside>
    Edited by: Matias Denker on Jan 4, 2008 11:44 AM

  • Sending mail with attachment and body.

    Hi Experts,
    I have a requirement of sending a mail with an attachment and also the mail will have a body whose content will be same as that in the attachment.Subject of the mail will also be configured dynamically.Though I am able to send the mail with the attachment but I am not able to configure the body whose content will be same as that of the attachment.
    I have unchecked the "Use Mail Package" and has hard-coded the "TO","From" field for sending the mail with attachment.
    Can you please check and let me know how to configure the body which will be same as that of the attachment.
    Thanks and Regards
    Atanu Mazumdar

    Hi,
    Use MTB module and then one of the parameter which can allow you to send message in attachment as well as in message body.
    Transform.ContentDisposition: it helps us to decide if we want to send the payload as an attachment or in the message body. If we give the Parameter value as u201Cattachmentu201D then we will have the payload attached in the mail and if we assign this value as u201Cinlineu201D the payload will go in the mail body.
    Hope this helps you..
    Regards....

Maybe you are looking for

  • Discrepancies 5800XM / Navigation Edition & TV Out...

    I ( like others on here ) recently bought a Nokia 5800XM only to find it was missing the TV Out cable, case, spare stylus etc.  I bought online and the website specs stated TV Out and cable supplied. My phone came with some bizarre white earphones, b

  • Outbound ALE Process

    Hi, i am new to ALE so please any one can pelp me step by step process.plz don't send link.

  • How do i drag and drop onto a smart object layer in Photoshop CS 5.5

    I recently bought a 3d mock up Photoshop file as I want to mock up my designs such as business cards and other 3d items. The file notes said With a simple drag and drop on the smart object layer your design will be presented in a realistic and striki

  • Importing other formats into iWorks09

    Hello, Next to McOS Systems 7,8,9, till 10.2.8, I used an Application for publishing called Ragtime Version 2,3 and since 2003 Version 5.0.6 (Solo) This very advanced application (www.ragtime.de) translates all documents from Windows .doc and .xls as

  • When will the FMS 3.0 be released?

    Hi all, Anybody has idea that when will the FMS 3.0 be released? How can I contact to adobe via e-mail? I can't see any email address in the official site... Thanks a lot!