-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6d6129
commit ed6fe77
Showing
1 changed file
with
38 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,38 +18,47 @@ In addition, you also need to configure the **templates** you want to use. | |
You must provide at least a plain-text version for each template. The html versions are optional. | ||
|
||
```js | ||
...otherOptions, | ||
emailAdapter: { | ||
module: 'parse-server-amazon-ses-email-adapter', | ||
options: { | ||
// The address that your emails come from | ||
fromAddress: 'Your Name <[email protected]>'', | ||
accessKeyId: 'Your AWS IAM Access Key ID', | ||
secretAccessKey: 'Your AWS IAM Secret Access Key', | ||
region: 'Your AWS Region', | ||
// The template section | ||
templates: { | ||
passwordResetEmail: { | ||
subject: 'Reset your password', | ||
pathPlainText: resolve(__dirname, 'path/to/templates/password_reset_email.txt'), | ||
pathHtml: resolve(__dirname, 'path/to/templates/password_reset_email.html'), | ||
callback: (user) => { return { firstName: user.get('firstName') }} | ||
//...otherOptions, | ||
emailAdapter: { | ||
module: 'parse-server-amazon-ses-email-adapter', | ||
options: { | ||
// The address that your emails come from | ||
fromAddress: 'Your Name <[email protected]>', | ||
accessKeyId: 'Your AWS IAM Access Key ID', | ||
secretAccessKey: 'Your AWS IAM Secret Access Key', | ||
region: 'Your AWS Region', | ||
// The template section | ||
templates: { | ||
passwordResetEmail: { | ||
subject: 'Reset your password', | ||
pathPlainText: resolve(__dirname, 'path/to/templates/password_reset_email.txt'), | ||
pathHtml: resolve(__dirname, 'path/to/templates/password_reset_email.html'), | ||
callback: (user) => { | ||
return { | ||
firstName: user.get('firstName') | ||
} | ||
} | ||
// Now you can use {{firstName}} in your templates | ||
}, | ||
verificationEmail: { | ||
subject: 'Confirm your account', | ||
pathPlainText: resolve(__dirname, 'path/to/templates/verification_email.txt'), | ||
pathHtml: resolve(__dirname, 'path/to/templates/verification_email.html'), | ||
callback: (user) => { return { firstName: user.get('firstName') }} | ||
}, | ||
verificationEmail: { | ||
subject: 'Confirm your account', | ||
pathPlainText: resolve(__dirname, 'path/to/templates/verification_email.txt'), | ||
pathHtml: resolve(__dirname, 'path/to/templates/verification_email.html'), | ||
callback: (user) => { | ||
return { | ||
firstName: user.get('firstName') | ||
} | ||
} | ||
// Now you can use {{firstName}} in your templates | ||
}, | ||
customEmailAlert: { | ||
subject: 'Urgent notification!', | ||
pathPlainText: resolve(__dirname, 'path/to/templates/custom_alert.txt'), | ||
pathHtml: resolve(__dirname, 'path/to/templates/custom_alert.html'), | ||
} | ||
} | ||
}, | ||
customEmailAlert: { | ||
subject: 'Urgent notification!', | ||
pathPlainText: resolve(__dirname, 'path/to/templates/custom_alert.txt'), | ||
pathHtml: resolve(__dirname, 'path/to/templates/custom_alert.html'), | ||
} | ||
} | ||
} | ||
} | ||
``` | ||
|
||
|
||
|