Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

'RECEIVED' confirmation message

tanju_lise3
Participant
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

Hi Tanju

If your issue is resolved, please mark the thread as answered.

Regards

Arden

0 Kudos

Hi Arden,

We did  not entegrate our mails with 3rd party email provider.

Our Basis Consultant did something ..

But not resolved exactly ..

Regards

0 Kudos

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.