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: 

unable to interpret <br/> in email text

Former Member
0 Kudos
513

hi

i have a case here were in a concatenate multiple string in one message

let say concatenate v_msg '<br/>' v_msg2 into v_msg3 seperated by string.

this message will be sent to email.

in the mail however the line were interpreted as a text

&lt;br/&gt; instead of a command line

why is that? is there any solutiion for this case?

thanks

aud

Edited by: audemar ryann on Mar 11, 2010 11:35 AM

Edited by: audemar ryann on Mar 11, 2010 11:37 AM

Edited by: Thomas Zloch on Mar 11, 2010 11:54 AM - subject line fixed for forum overview

8 REPLIES 8

Former Member
0 Kudos
362

Hi,

your message is not clear, please provide more details.

Regards,

--

Przemysław

0 Kudos
362

let say i have this string " the fox jump over <br\> the lazy dog" ( i used reverse / in purpose because it is being interpreted here as next line)

now my poblem is when i passed them to a mail the line is treated a string and not as a command for next line

because i have to display the " the lazy dog" in the a next line but this is not happening instead it is still display as how i passed them in abap.

0 Kudos
362

Hi,

you probably send email in text - that is why html markups are ignored.

Change <br /> to CL_ABAP_CHAR_UTILITIES=>NEWLINE (or CR_LR) using REPLACE ALL OCCURRENCES OF...

Regards,

--

Przemysław

0 Kudos
362

can you elaborate on that i had used CR_LR but still it is displayed in the email as is.

0 Kudos
362

Hi,

please give some code.

I am using SO_NEW_DOCUMENT_ATT_SEND_API1 to send emails, and I pass internal table as message body - everything works fine. Maybe you could change the function you are using?

Regards,

--

Przemysław

0 Kudos
362

im not using any function module im doing XI sending mail to end user,

is there any way that the lies of command will be interpreted as a html command

because in the email it is displayed as is.

thanks for the info anyways

0 Kudos
362

>

> im not using any function module im doing XI sending mail to end user,

>

> is there any way that the lies of command will be interpreted as a html command

>

> because in the email it is displayed as is.

>

> thanks for the info anyways

Hi,

try to put like...this

<HTML>
first line<br>secondline
</HTML>

Former Member
0 Kudos
362

Deleted...my comment was for FM.