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
|
- Inherited From:
- Source:
Returns:
- A promise for sending the Email.
- Type
- Promise.<{result: Object, errors: Array.<EmailServiceError>}>