Skip to Content

'RECEIVED' confirmation message

Hello All,

I have already send a mail with Z code ...

(using send call method )

But we need 'RECEIVED' confirmation message ...

What can I do ?

What do you recommend me ?

Regards

Tanju

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 18, 2015 at 07:19 PM

    Hi Tanju

    You would need to integrate your emails with a 3rd party email provider.

    They typically have the tools to identify more accurately email delivery activity.

    Regards

    Arden

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Tanju,

      If you have SOST configured properly, then use below code snippet and it will generate the delivery confirmation and send to the sender email address.

      TRY.

      *--Create persistent send request

                   lref_request = cl_bcs=>create_persistent( ).

      *--create and set document

      *----Create document from internal table with text

                   lref_document = cl_document_bcs=>create_document(

                                   i_type    = lc_htm " Doc Type

                                   i_text    = lt_mailtxt " mail body

                                   i_subject = ls_maildata-obj_descr ).

      *----Add document to send request

                   CALL METHOD lref_request->set_document( lref_document ).

      *----Add recipient (e-mail address)

                   LOOP AT lt_mailrec INTO ls_mailrec.

                     lv_receiver = ls_mailrec-receiver.

                     lref_recipient = cl_cam_address_bcs=>create_internet_address( lv_receiver ).

      *----Add recipient with its respective attributes to send request

                     CALL METHOD lref_request->add_recipient

                       EXPORTING

                         i_recipient = lref_recipient.

                     CLEAR: lv_receiver.

                   ENDLOOP.

      *----Send document

      **-- API to send emails

                   CALL METHOD lref_request->send(

                     RECEIVING

                       result = lv_sent_to_all ).

                 CATCH cx_bcs INTO lref_bcs_exception.

               ENDTRY.

      Do let me know in case of concerns.

      BR.