Page 1 of 1
EmailModule & format text
Posted: Fri Apr 20, 2018 9:24 am
by SanMan
Hi,
is it possible to format (e.g. bodytext) text that EmailModule sent? (bold, underline...)
Re: EmailModule & format text
Posted: Mon Apr 23, 2018 11:59 am
by McTurtle
Hey,
Yea, it's possible. However, you will have to modify the code of the automation helpers. Do this:
1. Open the EmailLibrary.cs file:
EmailLibrary.png
2. After the declaration of the new MailMessage in line 88 add the following:
IsBodyHTML.png
The automation helpers are using System.Net.Mail. More about IsBodyHtml under the following link:
Link
3. You can now add the HTML code into the string of the Body parameter and it should be interpreted as HTML by your mail client:
HtmlCode.png
Does this help?
Regards,
McTurtle
Re: EmailModule & format text
Posted: Mon Apr 23, 2018 1:36 pm
by SanMan
Thank you so much for the answer!
It really helped me.