SMTP Configuration in common fields
You can browse to SMTP transport module for Nodemailer documentation to make sure you use the right configuration.
SMTP transport Example
"from": "soajs@your.cloud.io", "transport": { "type": "smtp", "options": { "host": "smtp.mailgun.org", "port": 465, "auth": { "user": "soajs@your.cloud.io", "pass": "xxxxxx" } } }
Email Content Configuration in URAC
Variables used:
- User variables used here like username and firstName can be found under the User Model.
- limit: expiry of the link in hours.
- Links: Check the section below with an example about links.
Example
Custom Content of mail.
Mail Content
"<p>Dear <b>{{username}}</b>, <br />You have requested to reset your password. <br />Please click the following link to proceed: <a href='{{link.forgotPassword}}'>{{link.forgotPassword}}</a>. <br />Please note that the above link will expire in {{limit}} hours.<br /><br />Regards,<br/>SOAJS Team.</p>"
Links
This section will list the links in mail Configuration based on the mail subject.
Link Example
link: { addUser: 'http://dashboard.soajs.org:80/#/setNewPassword', changeEmail: 'http://dashboard.soajs.org:80/#/changeEmail/validate', forgotPassword: 'http://dashboard.soajs.org:80/#/resetPassword', join: 'http://dashboard.soajs.org:80/#/join/validate' },
0 Comments