30-03-23 07:50 AM
Hi,
How to send html content as body in outlook mail.
Thank You..
30-03-23 08:17 AM
Hi Kummari Srikanth : Refer this thread : https://community.blueprism.com/discussion/format-the-body-of-outlook-email. Additionally do let me know if you face any difficulties and what exactly you want to send as part of HTML in your emails?
30-03-23 09:00 AM
Also for creating a HTML Table from a collection which is the main requirement for many- Create a custom MS Outlook HTML VBO and follow below steps:
if(dtable !=null)
{
System.Text.StringBuilder strHTMLBuilder = new System.Text.StringBuilder();
strHTMLBuilder.Append("<br /><br />");
strHTMLBuilder.Append("<table rules='all' bordercolor='#4d4c4d' border='1' bgcolor='#FFFFFF' cellpadding='5'>");
if (Include_Header)
{
strHTMLBuilder.Append("<tr>");
foreach (DataColumn myColumn in dtable.Columns)
{
strHTMLBuilder.Append("<td width='20%'>");
strHTMLBuilder.Append(myColumn.ColumnName);
strHTMLBuilder.Append("</td>");
}
strHTMLBuilder.Append("</tr>");
}
foreach (DataRow myRow in dtable.Rows)
{
strHTMLBuilder.Append("<tr >");
foreach (DataColumn myColumn in dtable.Columns)
{
strHTMLBuilder.Append("<td width='20%'>");
strHTMLBuilder.Append(myRow[myColumn.ColumnName].ToString());
strHTMLBuilder.Append("</td>");
}
strHTMLBuilder.Append("</tr>");
}
//Close tags.
strHTMLBuilder.Append("</table>");
strHTMLBuilder.Append("<br /><br />");
string Htmltext = strHTMLBuilder.ToString();
Htmltext1=Htmltext;
}
else
{
Htmltext1="";
}
let me know if you face any difficulties implementing this.
30-03-23 10:23 AM
Hi Mukesh Kumar,
Refer to this thread: https://community.blueprism.com/discussion/format-the-body-of-outlook-email. This page is showing an Error. I am trying the below code.If any issue I will let you know.
30-03-23 10:32 AM
Hi Kummari Srikanth :Try this link as it will help you to understand your query more: https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwjuzPXAq4P-AhWRWcAKHeD-C80QFnoECAkQAQ&url=https%3A%2F%2Fcommunity.blueprism.com%2Fdiscussion%2Fformat-the-body-o...
30-03-23 02:33 PM
Hi Mukesh Kumar,
Here the main problem is to add a logo which is in the PNG format at the top right corner in the outlook mail body by using Html Code in the blue prism.
Regards & Thanks,
Srikanth
31-03-23 02:56 AM
Hi Srikanth
Can you insert this code "<div style="position: absolute; top: 0; right: 0;">
<img src="your-image.png" alt="Your Image" width="32" height="32">
</div>"
your-image.png >> Source , Your Image >> is description if required or you can remove
Based on requirement you can resize the image and mention the position as trial and error
and also attach the Image otherwise the recipient will not get
Hope this helps you
Regards
------------------------------
Lakshmi Narayana
------------------------------