10-18-2015 10:25 AM
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
10-18-2015 8: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
10-26-2015 9:29 AM
Hi Tanju
If your issue is resolved, please mark the thread as answered.
Regards
Arden
10-26-2015 10:08 AM
Hi Arden,
We did not entegrate our mails with 3rd party email provider.
Our Basis Consultant did something ..
But not resolved exactly ..
Regards
10-26-2015 11:07 AM
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.