How to send Outlook email with HTML content -
can me in how send email html content (google charts) using microsoft outlook 2010.
below sample html content of google charts.
<html> <head> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> google.load("visualization", "1", {packages:["corechart"]}); google.setonloadcallback(drawchart); function drawchart() { var data = google.visualization.arraytodatatable([ ['task', 'hours per day'], ['work', 11], ['eat', 2], ['commute', 2], ['watch tv', 2], ['sleep', 7] ]); var options = { title: 'my daily activities' }; var chart = new google.visualization.piechart(document.getelementbyid('piechart')); chart.draw(data, options); } </script> </head> <body> <div id="piechart" style="width: 900px; height: 500px;"></div> </body> </html>
the outlook object model provides htmlbody property items. so, can set property html markup , send mail item.
you can find sample code in how to: create , send outlook message programmatically article.
Comments
Post a Comment