Writing HTML Emails

1
I have been looking over the documentation but I have not been able to find any information about how to best write a HTML email. What is the best practice for a HTML mail with this component? The [`MailMessage`][1]'s [`BodyHtml`][2] property is barely documented, doesn't explain if you should also set the [`BodyText`][3] property at the same time or not. Also what should the [`BodyText`][3] property be set to? Is there any easy method to convert a HTML body to a plaintext version? Is it maybe done automatically when I set the [`BodyHtml`][2] property? Should I maybe just set the [`BodyText`][3] property to `"This is a HTML email."`? [1]: https://doc.componentpro.com/ComponentPro-Mail/ComponentPro-Net-Mail-MailMessage [2]: https://doc.componentpro.com/ComponentPro-Mail/ComponentPro-Net-Mail-MailMessage-BodyHtml [3]: https://doc.componentpro.com/ComponentPro-Mail/ComponentPro-Net-Mail-MailMessage-BodyText
edited 10/7/2020 11:43:20 AM
asked 9/18/2020 1:15:23 PM
add a comment

1 Answers

0
`BodyText` is for Plain text email clients that does not read HTML. You should set both or ignore `BodyText` property.
edited 10/6/2020 5:25:54 PM
answered 10/6/2020 5:25:43 PM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged mail or ask your own question.