vCO Workflow Script to Send an E-Mail

The following is the script to send an e-mail

 

var objEmailMessage;
objEmailMessage = new EmailMessage();
objEmailMessage.fromAddress = "vco@vcoflow.co.uk";
objEmailMessage.fromName = "vCloud Orchestrator";
objEmailMessage.smtpHost = "smtp.vcoflow.co.uk";
objEmailMessage.smtpPort = "25";
objEmailMessage.subject = strSubject;
objEmailMessage.toAddress = strToAddress;
objEmailMessage.addMimePart(strContent, "text/html");
objEmailMessage.sendMessage();

Leave a Reply