Class: Mandrill

Mandrill

new Mandrill(username, password)

Create a Mandrill provider.
Parameters:
Name Type Description
username string SMTP username for Mandrill.
password string SMTP password for Mandrill.
Source:

Extends

Methods

sendEmail(details) → {Promise.<{result: Object, errors: Array.<EmailServiceError>}>}

Function to send an email.
Parameters:
Name Type Description
details Object Email message options
Properties
Name Type Attributes Description
from string The email address of the sender
to string | Array.<string> Comma separated list or an array of recipients email addresses that will appear on the To: field
cc string | Array.<string> <optional>
Comma separated list or an array of recipients email addresses that will appear on the Cc: field
bcc string | Array.<string> <optional>
Comma separated list or an array of recipients email addresses that will appear on the Bcc: field
subj string <optional>
The subject of the email
text string <optional>
The plaintext version of the message
html string <optional>
The HTML version of the message
Inherited From:
Source:
Returns:
- A promise for sending the Email.
Type
Promise.<{result: Object, errors: Array.<EmailServiceError>}>