Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 219257

Re: vCO vCheck Output

$
0
0

You are actually very close, under your message.addMimePart line and before you send..., add the following:

var reportFile = new MimeAttachment("report.html");
reportFile.content = content; // assign the value of the content variable to the MimeAttachment content -- assuming formatted as HTML
reportFile.mimeType = "text/html"; // Set the mimeType for the file
// now add this mimeAttachment to the e-mail message:
message.addMimePart(reportFile, reportFile.mimeType);

Ta-Da!


Viewing all articles
Browse latest Browse all 219257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>