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: 

Get HTML Table in Mail Body of Outlook using Ole2Objects

philippdoelker
Participant
0 Kudos

Hello everyone,

I am struggling with the creation of a HTML Table within the mailbody of an Outlook E-Mail.

My Report is getting the necessary data in an  internal table, then I convert it into a html table.
I call the Outlook Application via ol2objects but if I pass the table into the mailbody it get's populated with all html tags, even though I set the property 'BodyFormat' to '2' -> which should be html format.

Please help!

Thank you in advance,

Best Regards,

Philipp

1 ACCEPTED SOLUTION

philippdoelker
Participant
0 Kudos

Figured it out myself:

Mailbody has to be set with
set property of ole2object 'HTMLBody' = lv_body.

1 REPLY 1

philippdoelker
Participant
0 Kudos

Figured it out myself:

Mailbody has to be set with
set property of ole2object 'HTMLBody' = lv_body.