Add Header info(to,cc,subject..) in Email body

0 votes
asked Nov 29, 2021 by ghostmaster (140 points)

Hi,

is there a way to add the haeder information like to, cc, subject in the html body string, without doing it manually?

I want to create the same result that a client like outlook does when you want to print the email.

Thank you in advance

Stefano

Applies to: Rebex Secure Mail

1 Answer

0 votes
answered Nov 29, 2021 by Lukas Matyska (61,230 points)

Hello,

unfortunately, Rebex Mail API does not offer any method to "automatically" modify HTML body content in a way you need.

The best way is to modify the MailMessage.BodyHtml property manually.

...