EmailModule & format text

Ask general questions here.
SanMan
Posts: 210
Joined: Tue Apr 13, 2010 9:59 am

EmailModule & format text

Post by SanMan » Fri Apr 20, 2018 9:24 am

Hi,

is it possible to format (e.g. bodytext) text that EmailModule sent? (bold, underline...)

McTurtle
Posts: 297
Joined: Thu Feb 23, 2017 10:37 am
Location: Benedikt, Slovenia

Re: EmailModule & format text

Post by McTurtle » Mon Apr 23, 2018 11:59 am

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
You do not have the required permissions to view the files attached to this post.

SanMan
Posts: 210
Joined: Tue Apr 13, 2010 9:59 am

Re: EmailModule & format text

Post by SanMan » Mon Apr 23, 2018 1:36 pm

Thank you so much for the answer!

It really helped me.