mailMessage.Header("“HTMLBody”).ToString does not work

Anyone else having issues with blank body of an outlook email. I’ve tried the suggested workaround using HTMLBody. Using mail.IsBodyHtml is always false. Is there a setting in Outlook where I can define the format of the message?

Can you try the below expression to get the html body of the email message -

mail.Headers("HTMLBody")

Ref -

Regards,
Karthik Byggari

1 Like

Thanks but that doesnt work. I used the exact command in the subject line

1 Like

This does not work! I tried the same but no luck

Before converting to HTMLBody check the value is null

how can that be done?

Hello, use a Try / Catch activity. This worked for me.
Without this error checking I get an exception message:

Some like, the text, or the file extension is too long.
Please see the next picture:

Thanks, Adrian