cancel
Showing results for 
Search instead for 
Did you mean: 

Easy way to make html mail to work in Blue Prism?

rolf.erik.oen
Level 3
Hello, I'm currently testing how I can send mail with html and have come up with some "boring" problem. If i want to Write " Do I have to make my code like: "
4 REPLIES 4

IbrahimAli
Staff
Staff
Hi Rolf, You can if you modify the Email - POP3/SMTP Business Object. Go to Send Message Action and open the Code tab. Search for the code below and add the line where the arrow points to. This enables all HTML formatting of the body message. using(MailMessage mail = new MailMessage()) { mail.From = new MailAddress(From); mail.To.Add(new MailAddress(To)); mail.Subject = Subject; -----> mail.IsBodyHtml = true; mail.Body = Body;

PrateekMehan
Level 6
there is already a field in Send Message action BodyIs HTML and its a flag type just pass true to it. Hope that solves your purpose no need of changing any code is required. Thanks.

John__Carter
Staff
Staff
Hi RE - there is an alternative Mapiex object at the bottom of this page https://portal.blueprism.com/resources/vbos

Thanks everyone, I did solve this by making Data item that had the html code. It works like gold.