Easy way to make html mail to work in Blue Prism?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
18-08-17 08:06 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
18-08-17 09:27 PM
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;
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
21-08-17 11:57 AM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
21-08-17 07:39 PM
Hi RE - there is an alternative Mapiex object at the bottom of this page https://portal.blueprism.com/resources/vbos
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
21-08-17 08:05 PM
Thanks everyone,
I did solve this by making Data item that had the html code. It works like gold.
