Skip to Content

customers receiving html email's as attachments in outlook

Hi All,

I am sending email to customers using class CL_BCS with method send.

Few customers are receiving email's as attachments instead of email message body.

Can you please suggest what could be reason for this.

I am using below methods to attach PDF document and send email

CALL METHOD cl_bcs_convert=>string_to_soli
EXPORTING
iv_string = ob_htm->htm_string ( This string contains my HTML coding )
RECEIVING
et_soli = it_soli.

CALL METHOD ob_gbt->set_main_html
EXPORTING
content = it_soli
filename = 'main_html.htm'
description = 'main_html.htm'.

l_document = cl_document_bcs=>create_from_multirelated(
i_subject = lv_subject
i_multirel_service = ob_gbt ).

TRY .
CALL METHOD lr_email->set_document( l_document ).
CATCH cx_send_req_bcs.
ENDTRY.

CALL METHOD lr_cl_bcs->send( i_with_error_screen = 'X' ).

Thanks & Regards,

Siva

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers