Response after sending mail

Hi ,
How i can get the response after sending a mail to an address?
Means what is the reponse of the server to that mail sending?
ThanKx

If you're looking for the detailed SMTP protocol level response codes,
see the smtpsend.java demo program included with JavaMail, and see
the javadocs for the com.sun.mail.smtp package.

Similar Messages

  • Excel crashes after sending mail (Office 365 Pro Plus)

    Hello All,
    A user reported that Excel crashes after sending mail.
    Excel is part of Office 365 Pro Plus and is fully update  (Feb 2015). Also there is no add-in enabled.
    Is there a way to raise a log or fix this issue?.
    Regards
    JO

    Hi George,
    Thanks for your reply.
    The scenario is what you had described:
     The user goes to File --> Share --> Email --> Send as Attachment. When he click "send
    it" and then Excel crashed and got the "Excel has stopped working" error.
    User didn't get "Excel has stopped working". User can't modify or close the Excel. So he had
    two options:
    - Kill the Excel Process 
    - Close Outlook then Excel can be used.
    It seems Outlook is causing this issue (as you said).
    When Excel Crashed after sending mail, I noticed that there is no pending request on Outbox.
    Regards
    JO

  • Error:  Failed to get a response after sending the message

    This is another one of those errors I only get some of the time with a specific script. I can't figure a rhyme or reason for it. The full error is:
    Failed to get a response after sending the message: <Message name="PageComplete"><Parameter WindowIndex="0"></Parameter><Parameter PassIfPageAlreadyComplete="false"></Parameter></Message>.
    It's triggering at a WaitForPage() method in the script. The script is executing from the OTM server which is Windows Server 2008 R2 and only runs for OTM. No roles or features (other than SMTP). IE-ESC is off for all users. The script runs with -delayPercentage 1.
    The script runs fine from within OpenScript workbench every time. The script does work when executed from OTM, however it will sometimes fail. When I run the scripts back to back the failure rate is about 50%. Same error every time....
    Any help, insight, and ideas would be greatly appreciated.
    Edited by: Colyn1337 on Mar 14, 2013 11:20 AM

    Also, some time it throw slightly different error like:
    "/web:window[@index='0']/web:document[@index='2']/web:form[@index='1']/web:inp
    ut_text[@id='saw_*' or @index='1']" failed to respond to action: <Message
    name="Click"><Parameter WindowIndex="0"></Parameter><Parameter
    DocumentIndex="2"></Parameter><Parameter index="1"></Parameter><Parameter
    tag="INPUT"></Parameter><Parameter type="text"></Parameter></Message>.
    Please help to triage.

  • Delivery Receipt After Sending Mail Using JavaMail ?

    Hi Friends,
    I have written an application using JavaMail which would be used to send mail
    using my organisation's SMTP Server.I would like to include the following functionality in it.Just as
    Microsoft's Outlook has an option to get Delivery Receipt of the mail and Read Receipt of the mail sent
    (Provided the email Client supports it) i would like to have a similar option in my application to.I would like to of how i can do it using JavaMail.I heard that basically we need to set some SMTP properties which the Mail Transfer Agent would recognize and send us the Delivery and Read Receipts.But,i am not sure of what those properties.Can anyone help me regarding this ?

    You might look into creating a custom header that provides a return reciept to the email address you specify. I'm not 100% sure that all mail servers support this but you might want to look into it as a solution.
    -Dave

  • Mail automatically opens a new compose window after sending mail

    Just recently, my Mail program has started opening a new compose window after I send an email. It's accompanied by the "you did something wrong" tone that my computer makes if you (for instance) hit some incorrect combination of keys. I've tried to fix this in preferences, but I don't see any item that controls this. Any ideas would be greatly appreciated, as this is a waste of time to have to cancel out of the unwanted new compose message, and confirm that, indeed, I want to cancel and not save it.
    Thanks!
    2006 G5   Mac OS X (10.4.9)  

    Is Outbox visible in the mailbox list? If so, get rid of any stray messages that may be there.

  • Spell Check Box stays up even after sending mail.

    Lion truly has some bugs. More annoyances, which is what bugs are I guess. I noticed that in Mail now, after you hit send and cycle through all the spell check changes, the spell check box remains open, even after you've sent the email off. I know it's just one click to close it, but it makes you think the mail didn't get sent. It's so more official when everything just closes up, you know? Am I being too picky here?

    yep same here, my spell check box stays open - any fixes?

  • Thunderbird hangs with "Copying to sent folder" after sending mail

    This is the same as has been reported by other users, however I have more info which I hope may be useful. (I haven't been able to receive my account confirmation email so created a new issue - separate problem!)
    The solutions which have been previously suggested (repair folders, compact folders and archive sent folder) do not cure this issue for me, which happens to me roughly 2-3 times every day. Restarting TB cures it for a short while.
    I've noticed that the problem almost always happens if I have a reminder that either is on screen or has recently popped up and been closed with a "1 hour reminder" (or other duration rather than dismissed).
    I generally mark an email which requires me to act with a "convert to task" and a reminder. Today, for example, I received an email asking me to join a conference call this afternoon at 4:30. So I used "convert to task" and asked to be reminded at 4:15. This will almost certainly cause TB to hang later this afternoon when I send an email while the reminder is on screen. Reminders often sit unnoticed behind other windows and this is generally the case when the hanging takes place.
    I'm using TB 31.1.1 on Ubuntu Gnome 14.04. I've only started having this problem in the last few months, at first every few days, but now several times a day.
    So I don't think size of Sent folder is the cause of this issue (it also sometimes hangs when saving to the Drafts folder too, which is usually empty) - I'm convinced it's something to do with a problem caused by reminder notifications being on screen or pending. The fact that restarting TB allows emails to be stored correctly in the Sent folder without a problem (for a while!) means that size or corruption are not the likely causes.
    Hope this helps others out there to pin this one down, even if I can't offer a solution - and any more info will be useful!

    Today this has happened four times, so I've now decided I'll have to switch to a different email client. For now, I'll use Evolution but continue to watch this thread to see if a cure is offered.
    Sorry to leave, as I like the product, but I can no longer work effectively when I have no confidence that my emails have been sent, and are not recorded in the Sent folder.

  • Can't open forms after sending mail

    Message was edited by:
    user548338
    Message was edited by:
    user548338

    Your Oracle Client (VB/Delphi app, TOAD, SQL*Plus, etc) needs to submit ('upload') the local document to the Oracle database. (as a CLOB most likely)
    Once the data is in the database, this data that you have supplied can be processed and used and for example, forwarded as an attachment via e-mail.
    Remember that the PL/SQL code runs inside Oracle Server Processes. These processes cannot hack their way across the network, break into your PC, crack open your local file system, and lift a file from the disk.

  • TO PARSE XML RESPONSE AFTER SENDING XML DOCUMENT AS URL PARAMETER PROBLEM

    Hi
    I sent the xml document (varchar variable)to the other site (to use URL).
    When I take the xml response from the other site, how can I parse this using pl/sql code? (db version oracle 8.1.7)
    What are the methods?
    Try the following URL by pasting it in browser location box:
    http://testspos.isbank.com.tr/sanalpos/spos.asp?prmstr='&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;ePaymentMsgVersionInfo="2.0" TT="Request" RM="Direct" CT="Money"&gt;&lt;OperationActionType="LiveTest"&gt;&lt;OpData&gt;&lt;MerchantInfo MerchantId="200000845966"MerchantPassword="kangurum"/&gt;&lt;ActionInfo&gt;&lt;TrnxCommon TrnxID="'||v_sipno||'"Protocol="156"&gt;&lt;/TrnxCommon&gt;&lt;/ActionInfo&gt;&lt;PANInfo&gt;&lt;/PANInfo&gt;&lt;OrgTrnxInfo&gt;&lt;/OrgTrnxInfo&gt;&lt;CustomData&gt;&lt;/CustoData&gt;&lt;/OpData&gt;&lt;/Operation&gt;&lt;/ePaymentMsg&gt;'
    You will get the response:
    &lt;html&gt;&lt;head&gt;&lt;title&gt;Error&lt;/title&gt;&lt;/head&gt;&lt;body&gt;The parameter is incorrect. &lt;/body&gt;&lt;/html&gt;

    Hi
    I sent the xml document (varchar variable)to the other site (to use URL).
    When I take the xml response from the other site, how can I parse this using pl/sql code? (db version oracle 8.1.7)
    What are the methods?
    Try the following URL by pasting it in browser location box:
    http://testspos.isbank.com.tr/sanalpos/spos.asp?prmstr='&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;ePaymentMsgVersionInfo="2.0" TT="Request" RM="Direct" CT="Money"&gt;&lt;OperationActionType="LiveTest"&gt;&lt;OpData&gt;&lt;MerchantInfo MerchantId="200000845966"MerchantPassword="kangurum"/&gt;&lt;ActionInfo&gt;&lt;TrnxCommon TrnxID="'||v_sipno||'"Protocol="156"&gt;&lt;/TrnxCommon&gt;&lt;/ActionInfo&gt;&lt;PANInfo&gt;&lt;/PANInfo&gt;&lt;OrgTrnxInfo&gt;&lt;/OrgTrnxInfo&gt;&lt;CustomData&gt;&lt;/CustoData&gt;&lt;/OpData&gt;&lt;/Operation&gt;&lt;/ePaymentMsg&gt;'
    You will get the response:
    &lt;html&gt;&lt;head&gt;&lt;title&gt;Error&lt;/title&gt;&lt;/head&gt;&lt;body&gt;The parameter is incorrect. &lt;/body&gt;&lt;/html&gt;

  • Convert pdf and send mail

    after sending mail ,the attachment doesnt conatin any pdf data.
    code is as follows.............
    LOOP AT IT_PDF.
    TRANSLATE IT_PDF USING ' ~'.
    CONCATENATE GD_BUFFER IT_PDF
    INTO GD_BUFFER.
    ENDLOOP.
    TRANSLATE GD_BUFFER USING '~ '.
    DO.
    I_OBJBIN = GD_BUFFER.
    APPEND I_OBJBIN.
    SHIFT GD_BUFFER LEFT BY 100 PLACES.
    IF GD_BUFFER IS INITIAL.
    EXIT.
    ENDIF.
    ENDDO.
    LOOP AT IT_PDF.
       TRANSLATE IT_PDF USING '~'.
    ENDLOOP.
      REFRESH:
          I_RECLIST,
          I_OBJTXT,
          I_OBJBIN,
          I_OBJPACK.
      CLEAR I_OBJPACK-TRANSF_BIN.
      I_OBJPACK-HEAD_START = 1.
      I_OBJPACK-HEAD_NUM = 0.
      I_OBJPACK-BODY_START = 1.
      I_OBJPACK-BODY_NUM = V_LINES_TXT.
      I_OBJPACK-DOC_TYPE = 'RAW'.
      APPEND I_OBJPACK.
    Attachment  (pdf-Attachment)
      I_OBJPACK-TRANSF_BIN = 'X'.
      I_OBJPACK-HEAD_START = 1.
      I_OBJPACK-HEAD_NUM = 0.
      I_OBJPACK-BODY_START = 1.
      DESCRIBE TABLE I_OBJBIN LINES V_LINES_BIN.
      READ TABLE I_OBJBIN INDEX V_LINES_BIN.
      I_OBJPACK-DOC_SIZE =  V_LINES_BIN * 550 .
      I_OBJPACK-BODY_NUM = V_LINES_BIN.
      I_OBJPACK-DOC_TYPE = 'PDF'.
      I_OBJPACK-OBJ_NAME = 'purchase order'.
      I_OBJPACK-OBJ_DESCR = 'purchase order'.
      APPEND I_OBJPACK.
      clear WA_OBJHEAD.
      CLEAR I_RECLIST.
      I_RECLIST-RECEIVER = P_EMAIL.
      I_RECLIST-EXPRESS = 'X'.
      I_RECLIST-REC_TYPE = 'U'.
      I_CC-COPY = I_CC.
      APPEND I_RECLIST.
      I_OBJTXT = 'Hi'.
      APPEND I_OBJTXT.
      I_OBJTXT = ' '.
      APPEND I_OBJTXT.
      I_OBJTXT = 'Please find the purchase order as an attachment'.
      APPEND I_OBJTXT.
      I_OBJTXT = 'from meda'.
      APPEND I_OBJTXT.
      I_OBJTXT = ' '.
      APPEND I_OBJTXT.
      I_OBJTXT = 'Thanks'.
      APPEND I_OBJTXT.
      I_OBJTXT = 'purcahse order'.
      APPEND I_OBJTXT.
      DESCRIBE TABLE I_OBJTXT LINES V_LINES_TXT.
      READ TABLE I_OBJTXT INDEX V_LINES_TXT.
      WA_DOC_CHNG-OBJ_NAME = 'purcahse order'.
      WA_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
      WA_DOC_CHNG-OBJ_DESCR = 'Mail from meda'.
      WA_DOC_CHNG-SENSITIVTY = 'F'.
      WA_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 2255.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          DOCUMENT_DATA              = WA_DOC_CHNG
          PUT_IN_OUTBOX              = 'X'
          COMMIT_WORK                = 'X'
        TABLES
          PACKING_LIST               = I_OBJPACK
          OBJECT_HEADER              = WA_OBJHEAD
          CONTENTS_BIN               = I_OBJBIN
          CONTENTS_TXT               = I_OBJTXT
          RECEIVERS                  = I_RECLIST
        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 EQ 0.
        WRITE : / 'email sent over' .
      ENDIF.
    ENDFORM.                    " EMAIL_DISPLAY

    hi check this....
    *& Report  ZSPOOLTOPDF                                                 *
    *& Converts spool request into PDF document and emails it to           *
    *& recipicant.                                                         *
    *& Execution                                                           *
    *& This program must be run as a background job in-order for the write *
    *& commands to create a Spool request rather than be displayed on      *
    *& screen                                                              *
    REPORT  zspooltopdf.
    PARAMETER: p_email1 LIKE somlreci1-receiver,
                         p_sender LIKE somlreci1-receiver ,
                          p_delspl  AS CHECKBOX.
    *DATA DECLARATION
    DATA: gd_recsize TYPE i.
    Spool IDs
    TYPES: BEGIN OF t_tbtcp.
            INCLUDE STRUCTURE tbtcp.
    TYPES: END OF t_tbtcp.
    DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
          wa_tbtcp TYPE t_tbtcp.
    Job Runtime Parameters
    DATA: gd_eventid LIKE tbtcm-eventid,
          gd_eventparm LIKE tbtcm-eventparm,
          gd_external_program_active LIKE tbtcm-xpgactive,
          gd_jobcount LIKE tbtcm-jobcount,
          gd_jobname LIKE tbtcm-jobname,
          gd_stepcount LIKE tbtcm-stepcount,
          gd_error    TYPE sy-subrc,
          gd_reciever TYPE sy-subrc.
    DATA:  w_recsize TYPE i.
    DATA: gd_subject   LIKE sodocchgi1-obj_descr,
          it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          gd_sender_type     LIKE soextreci1-adr_typ,
          gd_attachment_desc TYPE so_obj_nam,
          gd_attachment_name TYPE so_obj_des.
    Spool to PDF conversions
    DATA: gd_spool_nr LIKE tsp01-rqident,
          gd_destination LIKE rlgrap-filename,
          gd_bytecount LIKE tst01-dsize,
          gd_buffer TYPE string.
    Binary store for PDF
    DATA: BEGIN OF it_pdf_output OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA: END OF it_pdf_output.
    CONSTANTS: c_dev LIKE  sy-sysid VALUE 'DEV',
               c_no(1)     TYPE c   VALUE ' ',
               c_device(4) TYPE c   VALUE 'LOCL'.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    Write statement to represent report output. Spool request is created
    if write statement is executed in background. This could also be an
    ALV grid which would be converted to PDF without any extra effort
      WRITE 'Hello World'.
      new-page.
      commit work.
      new-page print off.
      IF sy-batch EQ 'X'.
        PERFORM get_job_details.
        PERFORM obtain_spool_id.
    Alternative way could be to submit another program and store spool
    id into memory, will be stored in sy-spono.
    *submit ZSPOOLTOPDF2
           to sap-spool
           spool parameters   %_print
           archive parameters %_print
           without spool dynpro
           and return.
    Get spool id from program called above
    IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
        PERFORM convert_spool_to_pdf.
        PERFORM process_email.
        if p_delspl EQ 'X'.
          PERFORM delete_spool.
        endif.
        IF sy-sysid = c_dev.
          wait up to 5 seconds.
          SUBMIT rsconn01 WITH mode   = 'INT'
                          WITH output = 'X'
                          AND RETURN.
        ENDIF.
      ELSE.
        SKIP.
        WRITE:/ 'Program must be executed in background in-order for spool',
                'request to be created.'.
      ENDIF.
          FORM obtain_spool_id                                          *
    FORM obtain_spool_id.
      CHECK NOT ( gd_jobname IS INITIAL ).
      CHECK NOT ( gd_jobcount IS INITIAL ).
      SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                     AND        jobcount    = gd_jobcount
                     AND        stepcount   = gd_stepcount
                     AND        listident   <> '0000000000'
                     ORDER BY   jobname
                                jobcount
                                stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
      IF sy-subrc = 0.
        message s004(zdd) with gd_spool_nr.
        gd_spool_nr = wa_tbtcp-listident.
        MESSAGE s004(zdd) WITH gd_spool_nr.
      ELSE.
        MESSAGE s005(zdd).
      ENDIF.
    ENDFORM.
          FORM get_job_details                                          *
    FORM get_job_details.
    Get current job details
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
           IMPORTING
                eventid                 = gd_eventid
                eventparm               = gd_eventparm
                external_program_active = gd_external_program_active
                jobcount                = gd_jobcount
                jobname                 = gd_jobname
                stepcount               = gd_stepcount
           EXCEPTIONS
                no_runtime_info         = 1
                OTHERS                  = 2.
    ENDFORM.
          FORM convert_spool_to_pdf                                     *
    FORM convert_spool_to_pdf.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid              = gd_spool_nr
                no_dialog                = c_no
                dst_device               = c_device
           IMPORTING
                pdf_bytecount            = gd_bytecount
           TABLES
                pdf                      = it_pdf_output
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
      CHECK sy-subrc = 0.
    Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att = gd_buffer.
        APPEND it_mess_att.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    ENDFORM.
          FORM process_email                                            *
    FORM process_email.
      DESCRIBE TABLE it_mess_att LINES gd_recsize.
      CHECK gd_recsize > 0.
      PERFORM send_email USING p_email1.
    perform send_email using p_email2.
    ENDFORM.
          FORM send_email                                               *
    -->  p_email                                                       *
    FORM send_email USING p_email.
      CHECK NOT ( p_email IS INITIAL ).
      REFRESH it_mess_bod.
    Default subject matter
      gd_subject         = 'Subject'.
      gd_attachment_desc = 'Attachname'.
    CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
      it_mess_bod        = 'Message Body text, line 1'.
      APPEND it_mess_bod.
      it_mess_bod        = 'Message Body text, line 2...'.
      APPEND it_mess_bod.
    If no sender specified - default blank
      IF p_sender EQ space.
        gd_sender_type  = space.
      ELSE.
        gd_sender_type  = 'INT'.
      ENDIF.
    Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   tables it_mess_bod
                                          it_mess_att
                                    using p_email
                                          'Example .xls documnet attachment'
                                          'PDF'
                                          gd_attachment_name
                                          gd_attachment_desc
                                          p_sender
                                          gd_sender_type
                                 changing gd_error
                                          gd_reciever.
    ENDFORM.
          FORM delete_spool                                             *
    FORM delete_spool.
      DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
      ld_spool_nr = gd_spool_nr.
      CHECK p_delspl <> c_no.
      CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
           EXPORTING
                spoolid = ld_spool_nr.
    ENDFORM.
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
          Send email
    FORM send_file_as_email_attachment tables it_message
                                              it_attach
                                        using p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     changing p_error
                                              p_reciever.
      DATA: ld_error    TYPE sy-subrc,
            ld_reciever TYPE sy-subrc,
            ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_email LIKE  somlreci1-receiver,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des ,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver LIKE  sy-subrc.
    data:   t_packing_list like sopcklsti1 occurs 0 with header line,
            t_contents like solisti1 occurs 0 with header line,
            t_receivers like somlreci1 occurs 0 with header line,
            t_attachment like solisti1 occurs 0 with header line,
            t_object_header like solisti1 occurs 0 with header line,
            w_cnt type i,
            w_sent_all(1) type c,
            w_doc_data like sodocchgi1.
      ld_email   = p_email.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    Fill the document data.
      w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = it_attach[].
    Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                receivers                  = t_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.
    Populate zerror return code
      ld_error = sy-subrc.
    Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.
    regards,
    venkat.

  • Sending mail EFG_GEN_SEND_EMAIL ..error in SMTP

    Hi Friends,
    I am using the FM EFG_GEN_SEND_EMAIL , for sending emails...
    But after sending mail... i found it not delivered...
    I have checked in trx:SCOT...found that in SMTP the messages are in Error state....
    I don't know, how to see that errors...
    Please help me...to solve this problem...
    I did the route test in SMTP ...it is successful..

    Hi,
    As you are receiving the dalivery failure, the message should be going from SAP.
    Please check the recipient ID. Hope you have given the domain as your mail server domain itself.
    Then test it through the short message service. like,
    go to System->Short Message->try a short massage give email id in recipients, specify type as Internet Address and see...
    Regards,
    Renjith Michael.

  • Change value in send mail :

    Hi Friends..
    Is it possible to change the email address value during dynamically in send mail step.Because in my PO.After sending mail to first person..The PO got rerleased in level 1.after that again i need to send the mail to another person.after that he will release the PO.So i need to change the send mail step value dynamically.
    is it possible or any other solution.
    1)workflow step like this.
    start>sendmail>po release>release step>completed.
    2)in two level approval execution happen like this.
    start>sendmail>po release -->release step -->sendmail --> po
    release -->release step -->completed
    Thanks
    Gowrishankar

    Hi Arghadip thanks for your reply..
    In my case need not to enter value.Depends on the PO release strategy the workflow is pick the approver..in the same way workflow needs to send a mail to that person external id with the message "you have received PO in your SAP inbox" in case release strategy contain two level.. first i need to sned the mail to first peroson after he approved then only it will goes to second person..
    This is my scenrio..
    Thanks
    Gowrishankar

  • File To Proxy : Handle the response from ECC to send mail without BPM

    Hi,
    Scenario: FILE To Proxy
    Requirement: We are receiving xml acknowledgement file from bank with IDoc number and status in SAP PI and the file is used to send the status number, message and and IDoc number to ECC. After request is received in ECC BAPI is executed to update the original status of outbound IDOC.
    There would be multiple records in file and PI will send all IDoc acknowledgement to ECC to update the IDoc status.
    Issue: Since PI send all records to ecc, if any single IDoc status update is failing in ECC how would it can be communicated to support.
    ECC can send success or error response in proxy but how we can use the same in PI to send mail to support. Or is there any better error handling we can go for in such scenario.
    Thanks,
    Vertika

    Hi everyone
    thanks for response.
    Interface 1: IDoc (ECC) to File (Bank) --> Done
    Interface 2: Acknowledgment File (Bank) to BAPI (ECC) where BAPI will update the status of IDoc sent in first interface.
    For Interface 2 : PI will receive file from Bank with multiple records i.e multiple IDoc numbers and their status. PI will invoke proxy to send the IDoc number and status number (eg 16) for all the records together. Now if BAPI fails to update status of any single IDoc in that file how support team will know that the particular record is failed. To handle this error ECC is saying they can send Error and Success back to PI. But the problem is how we can use that response in PI in the same interface to send emails to support team. Bank does not want any response back in this case. This is just to ensure proper error handling since this is bank related interface.
    Splitting the interface in two interfaces will definitely help. But is there some way which can be used in same interface and based on error response from ECC mail is triggered.
    If any one has better suggestion for such kind of error handling, please post the same.
    Thanks,
    Vertika

  • After I downloaded Yosemite I can no longer send mail with my google account only receive mail

    I installed Yosemite and I wish I had waited , I can now receive mail on my google account but can't send
    I just get the drop down box with Google off line try another server
    My laptop works fine but that still has maverick on it any help would be appreciated.
    I have already deleted all my mail accounts and rebooted but no luck after reinstalling mail as per laptop installation

    Well, it happened again.
    This morning I was sending out a bunch of emails and around the 10th one they started kicking back.
    This time I did not fool with any of the settings on my computer.
    I turned off both the modem and router.  Started them back up and the problem still exists.
    The last time this happend, about a week ago, it started working again within an hour.
    This problem ony crops up when I am sending many emails at the same time
    Throughout the rest of the week it works fine.
    This time I by-passed the router and the mail will go out.
    So it looks like someting is going on with the router.
    Whenver I hook the router back up, outgoing mail will not work.
    It says it cannot send mail using my server.
    I double checked all of my mail setings and nothing has changed
    I also did a hard rest on the router, but it did not help.
    Again this problem is with 2 computers. 
    I have an early version of Airport Extreme Model A1143.
    It's around 5 years old.
    Whenever I call my ISP they claim everything checks out on their end and they don't offer any help.
    I am sure if I leave the router unplugged for a day or so, it will start working again.
    Is there any way a router can break down and allow incoming mail and internet but not outgoing mail?
    I am am at wits end with this problem.
    I would be willing to go out and get the latest Airport Extreme if I knew for sure it would cure this problem.

  • Can no longer send mail after upgrade. Says server needs password. Server says down not support a password. Any thoughts?

    After up grade I can not send mail from road runner account. Message says server needs password, server says it won't support a password. Any thoughts?

    UPDATE: I was able to set up the account using Eudora, and it worked fine. I guess it means that there's something funny happing with Mail.

Maybe you are looking for

  • HT204053 3 people on same Apple ID - need to change into 3 separate IDs

    My kids and I share one Apple ID so that we can all access our music library.  Is it possible for all of us to have different Apple ID's so that we can use icloud and still share the iTunes Library?

  • Dual booting with Windows Vista/OSX 10.5 Leopard with 2 GPU's?

    Can I install a Nvidia GTX280 graphics card in a Mac Pro and use it to play games when booted into Windows Vista and use the included ATI Radeon HD 2600 XT card for booting into OSX? Or is this not possible? Is there any other way to install a GTX 28

  • CD drive disappearing/not reading after iTunes 7 installed.

    anyone else had this pickle? After I installed iTunes on this pc (P4 2.6Ghz with SiS 650 chipset) the DVD drive suddenly comes up in device manager as "not working properly" with one of those yellow exclamation points on it...no biggie: we banned the

  • Migrating sapgui look and feel settings of sapgui to new notebook.

    Hi, We are migrating from XP to Vista and SAPGui 640 to 710. (new notebooks are assigned to the users) I copied saplogon.ini to the new notebook to preserve the links to the servers. Some users have customized the look and feel of their SAPGui.  How

  • DB Console service does not start

    Hi, I have installed database 11.1.0.6.0 on W2K Professional and from the command line I have configured Database Control console using the sentence "emca -config dbcontrol db". I have not created a repository. Now I'm trying to start the service usi