Insert HTML in mail body

Hi,

Can you please explain how to pass html in mail body.
I have tried passing it in argument and putting the type string. It is not taking string and saying that it is xml.linq.xelement. I tried putting that as argument type but it is reading it as plain string only.

image

Please provide a solution for this.

Thanks

Hi,

Do not include the html tag.
You can define string argument and then assign value like this.

BodyCont = "

Hi User,

As part of access

Regards,
Amit Anand

Hi Amit,

Still the issue persists:
image

image

Kindly let me know where i am going wrong.

Thanks

Normally if i put value it works but how can i use html here?

I used html tags inside the mail body and it works . without html tags new line breaks were not working when using outlook

can you please provide me a screenshot of how you did it?

Thanks

image

i am using outlook for sending email

I am using smtp. Will it not work there?

I think it should work.i used html tags in outlook because outlook is removing line breaks and message displays differently . But html tags works in all version

Hi,

Change argument name from Body to BodyCont. Also, do not give explicit {Enter} while giving default value of argument. You can use /n or /r

Regards,
Amit Anand