Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Email Question: TXT emails are formatted fine but HTM emails just produce one long string

$
0
0

Hi,

 

I'm trying to send emails via CL_BCS.

I have a string that I am using for the body of the email and I use the following to get it into the right structure for the email:

CALL METHOD cl_bcs_convert=>string_to_soli

  EXPORTING

    iv_string = wa_email-body

  RECEIVING

    et_soli   = i_mail_body.

 

 

The question is that when I set the email as type TXT (text) it looks fine e.g.

Hello,

 

I hope you are well. See you tomorrow.

 

Bye!


But if I change the type to HTM (HTML) it is just one line e.g.

Hello, I hope you are well. See you tomorrow. Bye!


Does anyone know why this is and how to get round it?

 

Thanks!


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>