Send mail from abap from internal mail id

Hiiii,
          Is it possible to send mail from internal mail id  by using abap program ?

Hi,
I did't get your question, do you want to send mail using ABAP coding. If thats what is your requirement
check out with link:
https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/multiple%252battachment%252bon%252be_mail
Tks,
Krishna..

Similar Messages

  • Cannot send internal mail after basic setup

    I have setup Exchange 2013 SP1 on Server 2012R2 from scratch. I have added AD users and setup all the mailboxes for them.
    However, when I try to send email from OWA to internal mail accounts, other users cannot receive and mail at all.
    I have tried to send a email to my own account and I still cannot receive anything.
    There is no other setting I have done at all.
    Please let me know what information I need to provide to solve the issue.

    Hi,
    From your description, I recommend you follow the steps below for troubleshooting:
    1. Enable "Basic Authentication" on the properties of Receive Connector.
    2. Use the Test-ServiceHealth cmdlet to check if all the Windows services that Exchange server requires are running. Especially the Exchange Transport service and Mailbox transport service.
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Set Sender of Mail from Abap

    Hi,
    I use SO_NEW_DOCUMENT_SEND_API1 function module to send a mail from abap code.
    But I want to set the sender. Can I realize it?
    Regards
    Angela

    Refer this thread -
    Fill "sender id" in SO_NEW_DOCUMENT_SEND_API1
    Regards,
    Amit

  • Function modules to send mails from ABAP

    hi
               can any one give me the function module to send mails from abap to yahoomail or gmail etc. i will be grateful if any one can provide me a sample code.
    thanks & regards
    rajesh

    Hi,
    check this site:
    http://www.sapdevelopment.co.uk/reporting/email/email_mbody.htm
    Replace the
    p_email(40)   type c default '[email protected]' .
    with ur yahoo or gmail id
    This is the FM that u needed:
    'SO_NEW_DOCUMENT_ATT_SEND_API1'
    http://www.kabai.com/abaps/z00.htm
    http://www.sapdevelopment.co.uk/reporting/email/emailhome.htm
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    /people/thomas.jung3/blog/2004/09/07/sending-e-mail-from-abap--version-46d-and-lower--api-interface
    Hope this solves your question.
    Best Regards,
    Anjali

  • How to send mail from ABAP code?

    Hi,
    I need to send e-mail from ABAP Code .
    e.g:  If sy-subrc ne 0.
         ( send e-mail to  "[email protected]" )
           endif.
    Please provide me any Function module for this or any code.
    Correct answear will be rewarded my maximum points.
    Thanks & Regards,
    Gaurav.

    Check this code sample
    * Send mail
      maildata-obj_name = 'TEST'.
      maildata-obj_descr = 'Test Subject'.
      loop at htmllines.
        mailtxt = htmllines.
        append mailtxt.
      endloop.
      mailrec-receiver = '[email protected]'.
      mailrec-rec_type  = 'U'.
      append mailrec.
      call function 'SO_NEW_DOCUMENT_SEND_API1'
           exporting
                document_data              = maildata
                document_type              = 'HTM'
                put_in_outbox              = 'X'
           tables
                object_header              = mailtxt
                object_content             = mailtxt
                receivers                  = mailrec
           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.
      if sy-subrc  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    Regards.

  • Send mail from ABAP

    Hi all,
    do you know if i can send email from ABAP, i specify that i don't have WAS. I understand that i must install SAPConnect and SMTP plug-in but in my case will that function ? 
    Regards,

    Hi
    See following  routine it will send you data as attachment.
    FORM send_mail.
      it_doc_chng-obj_name  = text-016.
      it_doc_chng-obj_descr = text-016.
      DESCRIBE TABLE it_objtxt LINES g_lines.
      READ TABLE it_objtxt INDEX g_lines.
      it_objpack-doc_size = ( g_lines - 1 ) * 255 + STRLEN( it_objtxt ).
      it_objpack-doc_type   = 'RAW'.
      APPEND it_objpack.
      it_objpack-head_start = 1.
      it_objpack-head_num   = 0.
      it_objpack-body_start = 1.
      it_objpack-transf_bin = 'X'.
      it_objpack-body_num   = g_lines.
      it_objpack-doc_type   = 'RAW'.
      it_objpack-obj_name   = 'ATTACHMENT'.
      it_objpack-obj_descr  = g_file.
      APPEND it_objpack.
    completing the recipient list
      SORT it_vmail.
      DELETE ADJACENT DUPLICATES FROM it_vmail.
      IF l_client NE 'P'.
        it_reclist-receiver = p_email.
        it_reclist-express =  'X'.
        it_reclist-rec_type = 'U'.
        APPEND it_reclist.
      ELSE.
        LOOP AT it_vmail.
          it_reclist-receiver = it_vmail-smtp_addr.
          it_reclist-express =  'X'.
          it_reclist-rec_type = 'U'.
          APPEND it_reclist.
        ENDLOOP.
      ENDIF.
      it_rec_mail[] = it_reclist[].
      IF NOT p_copy IS INITIAL.
        it_reclist-receiver = p_copy.
        it_reclist-express =  'X'.
        it_reclist-copy =  'X'.
        it_reclist-rec_type = 'U'.
        APPEND it_reclist.
      ENDIF.
      CLEAR it_download[].
      it_download[] = it_objtxt[].
    **********Sending the mail with attachment*****************
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_MAPI'
        EXPORTING
          document_data              = it_doc_chng
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          packing_list               = it_objpack
          contents_bin               = it_objtxt
          contents_txt               = it_objtxt
          receivers                  = it_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          OTHERS                     = 99.
      CASE sy-subrc.
        WHEN 0.
          IF p_update = 'X'.
            PERFORM reference_update.
          ENDIF.
         PERFORM down_load.
          WRITE:/01 text-019.
          SKIP.
          LOOP AT it_rec_mail.
            FORMAT COLOR 5 INTENSIFIED OFF.
            WRITE:/01 text-010,20 it_rec_mail-receiver.
          ENDLOOP.
          ULINE.
        WHEN 1.
          WRITE: / text-012.
        WHEN 2.
          WRITE: / text-013.
        WHEN 4.
          WRITE: / text-014.
        WHEN OTHERS.
          WRITE: / text-015.
      ENDCASE.
      REFRESH:it_objpack,
              it_objtxt,
              it_reclist,
              it_rec_mail.
      CLEAR:it_objpack,
            it_objtxt,
            it_reclist,
            g_lines,
            it_rec_mail.
    ENDFORM.                    " send_mail
    Regards
    Suresh Babu Karanam

  • Sending e-mail from ABAP

    We need to send email to an external adress from ABAP. Does anybody know a function module or method to do this, maybe even with sample coding?
    Best regards
       Dirk

    There are some weblogs here:
    4.6x and lower:
    /people/thomas.jung3/blog/2004/09/07/sending-e-mail-from-abap--version-46d-and-lower--api-interface
    6.10 and higher:
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface

  • PROBLEM SENDING AN XLS VIA E-MAIL FROM ABAP OVER 255 CHARS

    Hi
    I need some help.
    I want to send a XLS attachment from a program via E-Mail.
    The problem is I have a lot of columns so I have over 255 chars , I think 500 Chars.
    When I send the email, I got it but it is truncate in the 255 position, all the rest doesn't appear
    Somebody knows about a solution for this problem?

    There was so many discussion about same topic.
    Check the below link for more information
    How to email an attachment with more than 255 characters?
    Thanks
    Seshu

  • Sending PDF output attachment in e-mail to external users from BSP

    Hi All,
    Please gothrough the below requirement details :
    Requirement Details:
    Need to achieve the functionality of sending a PDF attachment of invoice to an external
    e-mail address from the BSP Application.
    Implementation Details:
    The Print out Output determination is already done in the system. We are using SAP R/3 4.7 (620)
    In the Transaction VF03 in the initial screen there is a menubar "Billing document" and underneath that menu there is a menu item called "Issue". If we click the "Issue" menu item all the output that are already proposed will be visible and we can select the printout Output determination and can issue a printout.
    I had created a FM to call from BSP and that function module will take the Invoice number as input and will call the "VF03" transaction using BDC and will trigger the Sapscript Printout . I see the the sapscript in the spool after I call the Function module .
    But I don't know how I can get the Spool request number for that Function module call from BSP page ????
    I got struck in this approach...
    If I know the Spool number after calling the function module the it's very easy to call the following FM's for sending a e-mail with the Invoice PDF attachment.
    CONVERT_OTFSPOOLJOB_2_PDF
    QCE1_CONVERT
    SO_NEW_DOCUMENT_ATT_SEND_API1
    Please let me know if anyone can help me in this ...
    Please reply ASAP.
    Thanks,
    Greetson

    Check out these weblogs.
    /people/sap.user72/blog/2004/11/10/bsphowto-generate-pdf-output-from-a-bsp
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    Regards
    Raja

  • Unable to send mails to outlook from sap system through workflow

    Hi ,
    Iam unable to send mails to outlook from sap system through work flow .Actually we r able to send mails from sap inbox to outlook successfully.But when trying with workflow we r not able to send.Please guide me that is  there any configurations required from BASIS side for work flow.Actually we configured everything like default domain .
    Please find the errors belows that  traced from sost t code
    02/13/2012     17:50:12     0380 MIME_MESSAGE_GENERATE     G     Error when generating MIME flow
    02/13/2012     17:50:12     0382 MIME_MESSAGE_GENERATE     G     Required 'From' header is initial
    02/13/2012     17:50:12     0167 SO_OBJECT_MIME_GET     G     Error during MIME Generation
    02/13/2012     17:50:12     0777 UPDATE_SOSC     G     Cannot process message in SAP System
    Regards
    RAGHAVENADAR

    Hello,
    Actually i checked the mail ID for WF-BATCH  using su01 .But i didnt find any mail ID for WF-BATCH then i added the email address of the user.Then we tried sending mail it was successfull.
    But later i removed the email address what i entered in WF-BATCH user .Even after removing the email address also iam able to send the mails through workflow.
    So iam confused whether it needs an mail address or not.But now we are able to send a mail to outlook through work flow but not able to send mails to GMAILor yahoo.For that we need to do any settings.
    ABAPer is sending mails through work flow.
    Regards
    RAGHAVENDAR M

  • To post a mail from ABAP program

    dear friends
                  how to post a mail to SAP inbox of a particular user from ABAP program.

    get the spool no of the program
    we have standard program rstxpdf4  through that convert it to pdf
    and through f.m SO_NEW_DOCUMENT_ATT_SEND_API1 u can send mail.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
       EXPORTING
         DOCUMENT_DATA                    = x_document_data
         PUT_IN_OUTBOX                    = 'X'
         COMMIT_WORK                      = 'X'
       TABLES
         PACKING_LIST                     = it_packing_list
         CONTENTS_BIN                     = it_contents_bin
         CONTENTS_TXT                     = it_contents_txt
         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 .
    IF SY-SUBRC <> 0.
       retcode = sy-subrc.
       perform protocol_update.
    else .

  • Stop SpamAssassin from checking internal mail

    I just found out that SpamAssassin is checking mail send between our own staff. These people are authenticated smtp and so I would perfer not to have SpamAssassin spend time reading internal mail from trusted cliets. Is there a way I can do that?
    We use the apple WGM virtual domain model to host a couple of domains (just in case that has any impact on the problem)

    You could use a different submission port for authenticated users only.
    See Jeff's post for this:
    http://discussions.apple.com/thread.jspa?messageID=1640069&#1640069

  • Cannot send or receive yahoo mail or gmail from iPhone . installed ios 6 recently. tried rebooting the phone and deleting the email account and adding again but nothing works ! can someone suggest a solution?

    cannot send or receive yahoo mail or gmail from iPhone . installed ios 6 recently. tried rebooting the phone and deleting the email account and adding again but nothing works ! can someone suggest a solution?

    Not sure about yahoo, but for gmail, I done the following:
    Set up using Exchange on iPhone, it'll keep prompting for password.  On PC use captcha option, log in to gmail account from PC after completingg captcha option, enter password on iPhone.
    See how that goes for gmail, let us know.
    Hopefully someone will have fix for yahoo.

  • I cannot send from one specific BT Mail account but can access folders using IMAP.

    Thunderbird 31.3.0 on WIndows 8.1 64 bit.
    I have two email accounts configured into Thunderbird.
    Both are BT accounts and have identical configurations.
    IMAP is used for reading mail, SMTP for sending mail.
    On one I can read folders, delete emails from the Bulk Mail folder, fetch and send mail.
    On the other I seem to be able to do everything except send mail.
    I can read mail, delete SPAM, but for some reason not send emails.
    Both accounts are using "mail.btinternet.com" as the IMAP and SMTP server.
    I am using Thunderbird as a back up email client to deal with a very few messages which cause major problems with my main email client which is Windows Live Mail 2012. I have double checked and the mail server details are the same between the two and my WLM client can send emails to the same SMTP server on the same port as Thunderbird fails on.
    I know the password is correct because I can connect over IMAP and delete SPAM using Tbird.
    The only difference that I can see between the two accounts is that one is "@btinternet.com" and the other is "@talk21.com".
    The symptoms - I see the progress bar with "Connected to mail.btinternet.com..." and green all the way across.
    Some time later I get a separate warning saying "Login to server mail.btinternet.com failed".
    Because of the time delay I am assuming that the session has timed out.
    I am also assuming that if the credentials were wrong the rejection would have been immediate (although the delay may be to reduce the effectiveness of brute force attempts to guess the password).
    So I know that the IMAP credentials are O.K. - I can access the mailbox.
    I know that the SMTP credentials are O.K. - I can send mail from WLM using the same settings.
    Further confusion - I know that it worked in the past because I have a test message in my Sent mail from when I first set up Tbird.
    This is all very weird.
    Has anyone else seen something similar?
    Also, is there a debug option where I can trace the SMTP protocol when the email is being sent?
    Cheers
    LGC

    Update: - I sent two separate test messages and saved both the failing emails as Draft to retry after restarting Tbird.
    I've just noticed that they are both in a Drafts folder on my mail server.
    Not, however, the Drafts area for emails composed using the web mail client but under a separate Folders tree.
    I can't send the email with the web mail client, although I can forward it.
    So further proof that the IMAP side is working.

  • Iphone mail app not receiving e-mail from 1 sender

    The Mail app on my iPhone 6/iOS 8.3 is not receiving e-mail from one sender sent to my Outlook e-mail account. This sender's e-mail address is "[email protected]". It is a notification of digital magazines available from Zinio. I know the mail app is not receiving the e-mail because Outlook 2013 on my desktop and Outlook.com do receive these e-mails. How can I get the mail app on my iPhone to receive these e-mails from this address?

    Initially it sounds like something with your backup data caused the issue with your new device but if you restored your device again without using the backup and the issue still exists it wouldn't appear to be the issue at all. Since the problem seems to only be with one person are you sure it's not an issue on their end and with their network that is stopping you from receiving the messages? Have you tried *228 option 2 to see if that helps?

Maybe you are looking for

  • Header and footer scenario

    To concatenate  Header and Footer , You have to use Joiner Transformation and Join with a Dummy Condition. In first there will be columns like file name, date , time  and in second there will be column like trailer record count and amount , so after

  • Does X-RIte MSCCPP ColorChecker Passport work with Photoshop Extended CS3 Version 10.0.1 running under Mac OS 10.6.8?

    My iMac is running 10.6.8, but some of the newer color checkers require 10.7 or higher. Amazon has a listing for the X-Rite MSCCPP ColorChecker Passport. The system requirements mention Adobe Camera RAW 4.5 or newer, Mac OSX 10.4.11 or 10.5X. Will th

  • Keynote, how to transfer ppt to ipad2? Help!

    I just bought keynote and I can't find a way to transfer my ppt's to my ipad2. I bought this for school and have run into nothing but issues. Frustrated. Does anyone know what to do?

  • Error view help......

    I have the following problem in weblogic 10.3.2. when I connect to the administrative server, and try to view help within the "How Do I. ..", I get the following error: Error> <netuix> <BEA-423405> <An exception [java.lang.NoClassDefFoundError: javax

  • How to calculate IO on SQL Query.

    Hi all, Could u please tell me how to calculate IO for specific SQL Query. Regards, Santosh.