4.2

Table Of Contents
Send an Email
The following JavaScript example sends an email to the defined recipient, through an SMTP server, with the
defined content.
var message = new EmailMessage() ;
message.smtpHost = "smtpHost" ;
message.subject= "my subject" ;
message.toAddress = "receiver@vmware.com" ;
message.fromAddress = "sender@vmware.com" ;
message.addMimePart("This is a simple message","text/html") ;
message.sendMessage() ;
Using the Mail Plug-In Sample Workflows
You can call the sample workflows of the Mail plug-in from custom workflows to implement email
functionality. You can run an example workflow to test interaction with email.
Access the Mail Plug-In Sample Workflows
You must use the Orchestrator client to access the Mail plug-in sample workflows.
Prerequisites
n
The Mail plug-in must be enabled and configured in the Orchestrator configuration interface.
n
You must be logged in to the Orchestrator client as a user who can run Mail workflows.
Procedure
1 Click the Workflows view in the Orchestrator client.
2 Expand the hierarchical list to Library > Mail.
What to do next
Review the sample workflows.
Mail Plug-In Sample Workflows
You can integrate the sample Mail plug-in workflows in custom workflows.
Workflow Name Description
Retrieve messages Retrieves the messages of a given email account by using the POP3 protocol.
Send interaction Sends an email to answer a user interaction. The email body contains both the direct answer URL,
and an interaction URL to process this request. If optional parameters are not specified, the workflow
uses the default values set in the Orchestrator configuration interface.
Send notification Sends an email with specified content to a given email address. If optional parameters are not
specified, the workflow uses the default values set in the Orchestrator configuration interface.
Send notification to
mailing list
Sends an email with specified content to a given email address list, CC list, and BCC list. If optional
parameters are not specified, the workflow uses the default values set in the Orchestrator
configuration interface.
Chapter 7 Using the Mail Plug-In
VMware, Inc. 59