Classes


Namespace Email

Email functionality.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
Email.send(to, subject, textContent, options)
Send an email
<static>  
Email.trigger(toAddress, triggerKey)
Send the email trigger identified by the key to the passed email address.
Namespace Detail
Email
Method Detail
<static> Email.send(to, subject, textContent, options)
Send an email
	try {
		Email.send('sample@sample.com', 'Supporter ....', 'Please help us ...', {
			htmlContent: '<p>Please help us....</p>',
			from:        'sender <sender@example.com>'
		});
	} catch(e) { 
		print('There was and error while trying to send email: ' + e.description);
		return;
	}
Parameters:
{String} to
The email address that you want to sent message to
{String} subject
The subject of the email
{String} textContent
The TEXT body part of your email.
{Object} options Optional
An Object containing the optional e-mail parameters.
options {...}
{String} htmlContent Optional
The HTML body part of your email.
{String} from Optional
Sender of the email. You can supply just an e-mail address or a full header
{String} cc Optional
Copies to.
{String} bcc Optional
Blind copies to.
{String} headers Optional
Email headers that you want to set.

<static> Email.trigger(toAddress, triggerKey)
Send the email trigger identified by the key to the passed email address.

This function does not change the behavior of the trigger (timed triggers will still be delayed) and "Individual Triggers" will override the toAddress

Parameters:
{String} toAddress
The email address to send the trigger to. This can be overrident by "Individual Triggers" addressed to a specific person.
triggerKey
The database key of the trigger to send.

Documentation generated by JsDoc Toolkit 2.3.0 on Thu Sep 02 2010 13:38:24 GMT-0400 (EDT)