new SES(username, password, region)
Create an SES provider.
Parameters:
Name | Type | Description |
---|---|---|
username |
string | SMTP username for SES. |
password |
string | SMTP password for SES. |
region |
string | Region of the AWS account. |
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>}>