Advanced Alerting APIs
Email Interface Reference

Provides an API to send plain text or html email. More...

List of all members.

Public Member Functions

void sendPlainMessage (object message)
void sendHtmlMessage (object message)

Detailed Description

Provides an API to send plain text or html email.

Author:
Matt Rodriguez

Member Function Documentation

void sendHtmlMessage ( object  message)

Send a html email. Use this function in your alert policy script by calling neustar.email.sendHtmlMessage.

Parameters:
messageA Javascript object which must contain the attributes to, subject, and body. The to attribute is an array of email addresses that the email will be sent to. The subject attribute is the subject of the email, and the body is the message body of the email. The body will be MIME encoded. The message object may contain an attachment attribute. The description of the attachment attribute is described in sendPlainMessage.
void sendPlainMessage ( object  message)

Send a plain text email. Use this function in your alert policy script by calling neustar.email.sendPlainMessage.

Parameters:
messageA Javascript object which must contain the attributes to, subject, and body. The to attribute is an array of email addresses that the email will be sent to. The subject attribute is the subject of the email, and the body is the message body of the email.The message object may contain an attachment attribute. The attribute will have a list of objects for each attachment. Each object must have the following attributes name, content, and type. These are the name of the attachment, the content of the attachment and the encoding of the attachement. It is recommended that the type attribute be text/plain.
 All Classes Functions