FM for mail sending

dear experts,
                i want to send external mail like (gmail , yahoo....) through Abap Program . how to do this .. Is there any funtion module for that?.. Please reply me,
Regards,
kumar

FUNCTION MODULES
http://www.erpgenie.com/abap/functions.htm
http://www.sapdevelopment.co.uk/fmodules/fmssap.htm
http://www.erpgenie.com/abap/index.htm
http://www.geocities.com/victorav15/sapr3/abapfun.html
Rewards if useful...........
Minal

Similar Messages

  • Problem of encoding for mail sender adapter

    Hello, everyone.
    I have faced the problem of mail sender adapter.
    When someone send message with any content encoding (even UTF-8) and 8bit content type encoding the XI mail adapter corrupt special and foreign symbols. I checked the message for correct structure and encoding with tpcgw utility and it was fine. For example (this is what I can see in tcpgw)
    ==== Response ====
    +OK
    +OK Password required for user itra_xi
    +OK XXXXX maildrop has 1 messages (2048 octets)
    +OK 1 2048
    +OK
    +OK 1459 octets
    Return-path:
    Received: from (port=20091 helo=XXXX)
         by mx76.mail.ru with psmtp
         id 1O7UoW-0003I4-00
         for XXXXXX; Thu, 29 Apr 2010 18:34:04 +0400
    Message-ID:
    Subject: Message 29 4
    Date: Thu, 29 Apr 2010 17:33:43 +0300
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
         boundary="----=_NextPart_000_0018_01CAE7C2.1D0BBA60"
    X-Priority: 3
    X-MSMail-Priority: Normal
    X-Mailer: Microsoft Outlook Express 6.00.2900.5843
    X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
    X-Spam: Not detected
    X-Mras: Ok
    This is a multi-part message in MIME format.
    =_NextPart_000_0018_01CAE7C2.1D0BBA60
    Content-Type: text/plain;
         charset="utf-8"
    Content-Transfer-Encoding: 8bit
    Test
    Тест
    And after processing by XI mail adapter  I have this payload (XIPAYLOAD mode using mail package)
    Test
    Тест
    The same situation with using mail package in xml document.
    Any suggestions how this can be corrected?

    I switched UTF-8 encoding during displaying of http content in tcpgw utility and all other mail clients detect it as UTF-8 and work fine. Also this problem occurs with different mail clients that are senders of the message. So it seems adapter takes each byte of cyrillic symbol (each from two) and represents it as individual symbol.
    Correct me if I'm wrong. Maybe there is some configuration somewhere allowing to correct or maybe it's possible to write module to correct.. but it's quite complicated to split correct and incorrect symbols.

  • Shortcut for Mail Sending Account suddenly doesn't work!

    A year ago or so I created shortcuts so I easily could switch what account the current mail was sent from.
    If you aren't aware of this it's made from the System Preferences > Keyboard > Shortcuts. As described here:http://articles.directorym.com/Set_Mails_sending_account_via_keyboard_shortcut-a 962070.html
    This worked without hesitation after installing Lion a month ago.
    Tonight, I changed one of the my emails, and hence I needed to change the shortcut. Eg: from Steve Jobs <[email protected]> to Steve Jobs <[email protected]>
    After this change none of them work! Before, I could see the shortcuts in the account menu, but now I see nothing. And I haven't change anything else!!
    I have restarted, and tried fifty other things with no success. I use these commands extremely often since I mail from a lot of different companies. Now it's a real pita to change the sending account.
    The question is probably this: How do I setup shortcuts for the sending accounts in Lion?
    Please help!
    Edit: I just noticed that when edit the shortcut in System Preferences it automatically adds an ">" in front of the shortcut name! Someone else that notice this?
    Message was edited by: Andreas Carlsson

    I solved it by removing the name and just using the email address in the shortcut.
    But I think this is solved in 10.8 though.

  • Smtp settings for mail send needed after transition mobileme - iCloud

    Hi,
    I have transitioned our mail accountfrom mobilme to iCloud in July. Sending and receiving mail worked flawlessly until yesterday. As of today I cannot send mail. It indicates that my account is "offline". Can someone please remind me how to set our email account settings for sending?
    Thanks!

    pvonk wrote:
    You have probably been using the same email "account" in the mail app as was used to connect to MobileMe (I'm surprised you've lasted as long as you did).  In Settings>Mail, Contacts..., go to the Account section and delete the account you've been using.  Then create a new icloud account using the same account ID.  That will properly connect to icloud and get all your emails back.
    Not on Snow Leopard it won't, the account must be entered manually (using the settings provided). Your advice would be true if this were Lion or Mountain Lion but Snow Leopard will attempt to set it up as if it were Mobile Me.

  • How to load different certificates in a keystore for mail sender adapter

    Hi,
    we are getting mails from different partners. Some have digital signatures others not.
    Now we wanna verify the mails with digital signatures.
    My problem is, that we have to enter the "keystore" and the "keystore entry" in the sender agreement - but the mail partners have different CAs (e.g. Verisign,....).
    Is it possible to collect all certificates of our partners in one keystore?
    How can we handle the problem?
    Thx a lot!
    regards
    Wolfgang

    Hi,
    we are getting mails from different partners. Some have digital signatures others not.
    Now we wanna verify the mails with digital signatures.
    My problem is, that we have to enter the "keystore" and the "keystore entry" in the sender agreement - but the mail partners have different CAs (e.g. Verisign,....).
    Is it possible to collect all certificates of our partners in one keystore?
    How can we handle the problem?
    Thx a lot!
    regards
    Wolfgang

  • How to change Content-Transfer-Encoding for mail sending

    Hello Experts,
    I need to send some documents through mail which i am doing with the help of cl_output_service=>document_output method. Mail is been send succesfully.
    But in the payload content which got from Exchange server:
       X-Mailer: SAP Web Application Server 7.10
       Content-Type: text/plain;
        charset="us-ascii"
       Content-Transfer-Encoding: quoted-printable
    Can any one help me, how i can change Content-Transfer-Encoding field to some other format which is not  'quoted-printable'.
    Thanks & Regards,
    Dheeraj

    Do you documents contain an XML Declaration like this at the top?
    <?xml version="1.0" encoding="ISO-8859-2"?>
    If not, then they need to. The XML 1.0 specification says that if an XML declaration is not present, the processor must default to assume its in UTF-8 encoding.

  • How can i read only .txt file and skip other files in Mail Sender Adapter ?

    Hi Friends ,
                       <b> I am working on scenario like , I have to read an mail attachement and send the data to R3.</b>
                        It is working fine if only the .txt file comes.
                      <b>Some times ,html files also coming along with that .txt files. That time my Mail adapter fails to read the .txt file.</b>
                       I am using PayLoadSwap Bean and MessageTransformBean to swap and send the attachment as payload .
                         <b>Michal as told to write the Adapter module to skip the files .But i am not ware of the adapter moduel . If any blogs is there for this kind of scenarios please give me the link.</b>
                           Otherwise , please tell me how to write adapter module for Mail  Sender Adapter?
                      How to download the following
                        newest patch of XI ADAPTER FRAMEWORK CORE 3.0
    from SAP Service Marketplace. Open the file with WinZip and extract the following
    SDAs:
    &#61589;&#61472;aii_af_lib.sda, aii_af_svc.sda
    &#61589;&#61472;aii_af_cpa_svc.sda
                        I have searche in servive market place .But i couldn't find that . Can you please provide me the link to download the above .
                      If any other suggestions other than this please let me know.
    Regards.,
    V.Rangarajan

    =P
    Dude, netiquette. Messages like "i need this now! Do it!" are really offensive and no one here is being payed to answer anyone's questions. We're here because we like to contribute to the community.
    Anyway, in your case, just perform some search on how you could filter the files that are attached to the message. The sample module is just an example, you'll have to implement your own. Tips would be to query the filename of the attachments (or maybe content type) and for the ones which are not text, remove them.
    Regards,
    Henrique.

  • Best Effort (BE) Quality Service in JDBC & Mail Sender Adapter

    Hi Experts,
    I have confusion for Mail & JDBC Sender adapters.
    Why BE QoS is provided in the sender JDBC & Mail Adapters. Can anybody explain me with how will be Synchronous JDBC or Mail scenario.
    Thanks in advance.
    Abdur

    Use of BE in JDBC can be seen here
    http://www.klickklack.wg.am/RFC_Request_Response_without_BPM.doc
    For mail sender, usually there are no such logical requirement.
    Regards,
    Prateek

  • Content-Transfer-Encoding for mail from Portal

    Hi,
    I work on Portal 7.0 SP 12.
    Do You know how to change encoding (Content-Transfer-Encoding) for mails send from portal by users (ex. from Collaboration Launch Pad) ?
    Regards,
    Jarek

    Thank you

  • Mail sending pro

    REfresh : it_message.
    clear   : it_message[].
      APPEND 'Hi Sir/Madam,' TO it_message.
      APPEND '' TO it_message.
      APPEND 'Kindly approve the submitted leave request' TO it_message.
      APPEND '' TO it_message.
    Fill the document data.
    gd_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      gd_doc_data-obj_langu = sy-langu.
      gd_doc_data-obj_name = 'SAPRPT'.
      gd_doc_data-obj_descr = 'Leave Request for Approval'. "psubject.
      gd_doc_data-sensitivty = 'S'.
      gd_doc_data-no_change = space.
    Describe the body of the message
      CLEAR it_packing_list.
      REFRESH it_packing_list.
      it_packing_list-transf_bin = space.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES it_packing_list-body_num.
      it_packing_list-doc_type = 'RAW'.
      APPEND it_packing_list.
    Add the recipients email address
      CLEAR it_receivers.
      REFRESH it_receivers.
      it_receivers-receiver =  p_final_tab_emailid. "p_email.
    it_receivers-rec_id = 'DEVELOPER'.
      it_receivers-rec_type = 'U'.
      it_receivers-com_type = 'INT'.
    it_receivers-notif_del = 'X'.
    it_receivers-notif_ndel = 'X'.
      APPEND it_receivers.
    Call the FM to post the message to SAPMAIL
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = gd_doc_data
          put_in_outbox              = 'X'
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = gd_sent_all
        TABLES
          packing_list               = it_packing_list
          contents_txt               = it_message
          receivers                  = it_receivers
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
    Store function module return code
      gd_error = sy-subrc.
    Get it_receivers return code
    LOOP AT it_receivers.
    ENDLOOP.
      WAIT UP TO 2 SECONDS.
      IF gd_error EQ 0.
        SUBMIT rsconn01 WITH mode = 'INT'
        WITH output = 'X'
        AND RETURN.
      ENDIF.
    when i execute this conding for mail sending i'm getting one pop up when i press enter only mail is going i dont need that popup to be displayed for that  what should i do in my coding.,,
    Can some one suggest me.,.,
    Thanks and Regards.
    Thirukumaran. R

    REfresh : it_message.
    clear   : it_message[].
      APPEND 'Hi Sir/Madam,' TO it_message.
      APPEND '' TO it_message.
      APPEND 'Kindly approve the submitted leave request' TO it_message.
      APPEND '' TO it_message.
    * Fill the document data.
    * gd_doc_data-doc_size = 1.
    * Populate the subject/generic message attributes
      gd_doc_data-obj_langu = sy-langu.
      gd_doc_data-obj_name = 'SAPRPT'.
      gd_doc_data-obj_descr = 'Leave Request for Approval'. "psubject.
      gd_doc_data-sensitivty = 'S'.
      gd_doc_data-no_change = space.
    * Describe the body of the message
      CLEAR it_packing_list.
      REFRESH it_packing_list.
      it_packing_list-transf_bin = space.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES it_packing_list-body_num.
      it_packing_list-doc_type = 'RAW'.
      APPEND it_packing_list.
    * Add the recipients email address
      CLEAR it_receivers.
      REFRESH it_receivers.
      it_receivers-receiver =  p_final_tab_emailid. "p_email.
    * it_receivers-rec_id = 'DEVELOPER'.
      it_receivers-rec_type = 'U'.
      it_receivers-com_type = 'INT'.
    * it_receivers-notif_del = 'X'.
    * it_receivers-notif_ndel = 'X'.
      APPEND it_receivers.
    * Call the FM to post the message to SAPMAIL
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = gd_doc_data
          put_in_outbox              = 'X'
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = gd_sent_all
        TABLES
          packing_list               = it_packing_list
          contents_txt               = it_message
          receivers                  = it_receivers
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
    * Store function module return code
      gd_error = sy-subrc.
    * Get it_receivers return code
    *  LOOP AT it_receivers.
    *  ENDLOOP.
      WAIT UP TO 2 SECONDS.
      IF gd_error EQ 0.
        SUBMIT rsconn01 WITH mode = 'INT'
        WITH output = 'X'
        AND RETURN.
      ENDIF.

  • Orac_tool for mail ?????

    Hi,
    Where can i get schema for orac_tool??
    I want send mail from db. I have used in past
    by one client of us orac_mail package of something like that for mail sending from database.
    Is it standard oracle package? If yes where can i get it.
    thnx,
    Roman

    use utl_smtp package for mailing from database
    null

  • Mail sender adapter POP server not configured for URL access

    Hi Experts,
    I have a Mail --> PI --> R/3 scenario and I am configuring the Mail sender adapter for POP3. The issue is that the POP server is not configured to be accessed via a URL and hence the URL pop://hostname/ is causing the following error at runtime:
    _1. When I use pop://Fully qualified host name/
    _Error: exception caught during processing mail message; java.net.UnknownHostException
    _2. When I use pop://IP address of host/
    _Error: exception caught during processing mail message; java.net.SocketException: Connection timed out:could be due to invalid address
    I am able to ping the POP3 server from the PI server using both the FQDN and IP address.
    Can someone please help.
    Thanks,
    Shobhit
    Edited by: Shobhit Swarup Mathur on Jul 14, 2009 9:29 AM
    Edited by: Shobhit Swarup Mathur on Jul 14, 2009 9:29 AM

    Hi Shobhit
    Check with these notes:
    804102
    xi 3.0 mail adapter with pop3 user authentication problem
    810238
    XI 3.0 Mail Adapter for POP3 may not report some errors
    also check mailserver security settings ...
    Connection refused occures when XI cannot connect
    in most cases so try checking it again , maybe some ports are not opend on the firewall
    Thanks
    Edited by: Abhishek Agrahari on Jul 14, 2009 11:44 AM

  • Mail Sender Adapter for Exchange 2007 IMAPS account

    Hi everybody,
    I have the following todo:
    I configured a Mail Sender Adapter that is supposed to fetch mails from an IMAP account.
    The mails contain text files with data to be processed by XI 3.0 SP 22.
    The mail server is Exchange 2007 and requires IMAPS. IMAP is not enough. I read the notes
    - 893590 - XI 3.0 Mail sender adapter with IMAP or POP with SSL problem
    - 856599 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 Mail Adapter
    and configured the sender apapter as follows:
    URL:                     imaps://<ip address>/owa
    Authentication method:     Plain
    User:                    <domain>\<user>
    Password:                       topsecret
    Poll Interval: 5
    The first challenge is to setup the adapter with SSL. To do so, I added the Exchange server's
    root SSL certificate in the default truststore service-ssl via the KeyStorage service.
    This is necessary, as far as I know, to successfully validate the Exchange server's trusted
    certifacate which is being transfered to XI during SSL handshake.
    Since the communication channel in RWB is in status error with following message:
    mail client job stopped completly
    exception caught during processing mail message; java.io.IOException: invalid IMAP status response; not finding * STATUS, but 001I NO owa doesn't exist.
    mail client job scheduled,
    I do not know how to setup SSL for IMAPS. I successfully tested a PING to the Exchange server.
    Are there already experiences with Exchange 2007?
    What I have to do to fetch mails from an Exchange 2007 IMAPS folder/account with a Mail Sender Adapter?
    Kind regards,
    Andreas

    Hi,
    It should be imap and not imaps.
    You can try imap://xxx.xxx.de:993/Inbox
    Make sure that port 993 is correct. If you have doubt, then you may try 143 which is default port instead of 993 in the above url.
    regards,
    ganesh.

  • Xi mail sender adapter for outlook express configuration

    hi,
    can somone please tell me how to configure xi mail sender adapter for reading from inbox of outlook express?
    i keep getting errors in communication channel monitor:
    "exception caught during processing mail message; java.io.IOException: unexpected user response; read -ERR Command is not valid in this state."
    Thanks
    Tomer

    Hi,
    use below link,finish the configuration of sender mail adapter,many documents available on the same in sdn,search your self
    http://www.riyaz.net/blog/xipi-configuring-the-sender-mail-adapter/
    Cheers,
    Raj

  • Why we do not need sender agreement for Mail and SOAP adapter

    Hi SDN,
    I know, we do not need sender agreement for IDOC ,HTTP,XI adapters. As these three adapters will run in Integration engine of the abap stack.
    <b>In our scenario if sender is other than  IDOC or HTTP or XI .</b>
    By Refering Sivamni's blog.
    <b>/people/siva.maranani/blog/2005/05/25/understanding-message-flow-in-xi
    message will be pickedup by communication channel with the help of sender agreement and prepare XI message header by performing cpa cache lookup. then message will go to module processor etc.
    <b>In our scenario if sender is IDOC or HTTP or XI .</b>
    As these 3 adapters are run in Integration engine.
    Doubt 1:
    how the integration engine will create the xi message header like sender interface sender system name etc...
    Doubt 2:
    I believe SOAP and mail adapter will run in adapter engine.but i came to know that we do not need sender agreement and sender comm channel for these two adapters too...then how the XI message header will create...
    Please do correct me if i am wrong
    and throw some light on the same..
    Appreciate your help....
    Regards,
    Reehan.

    Reehan,
    Thanks for pointing me to that link. Guess I was wrong .,But,let me try to put to you why you need a sender agreement for a Sender SOAP Adapter,
    1. In the sender SOAP adapter , the Sender Interface and the Interface Namespace as provided in the fields Default Interface Name and InterfaceNamespace. The Name of the Sender Service is provided in the WSDL when you ceate the WSDL in the Integration Directory. So, as all details are available in either the Sender SOAP adapter or in the WSDL url you do not need a Sender Agreement. It is not obligatory but you can always create the Sender Agreement.
    2.  For the mail adapter , if you select the option XIPAYLOAD, you will have the option to mention the Interface Name and Interface Namespace under XI Parameters  and so in this case as once again the details provided in the sender agreement are available in the Sender Adapter itself the sender agreement is not needed for the mail adapter when you have select option XIPAYLOAD.
    If you have selected XIALL then you need a sender agreement.
    Regards
    Bhavesh

Maybe you are looking for