Introduction:
This page is to show different variables with information of each variable that is needed to configure mail notification content.
Name | Type | Description | Example |
---|---|---|---|
transport | Object | To configure connection with mail provider | Example #1 |
subject | string | Mail Subject | "Mail Subject number 1" |
from | string | from email | "mail@soajs.org" |
path | string | Template Path | "/soajs/node_modules/soajs.urac/mail/urac/changeUserStatus.tmpl" |
content | string | You either use custom mail content or you use mail template path | Example 2 |
Examples
Example #1
You can browse to SMTP transport module for Nodemailer documentation to make sure you use the right configuration.
SMTP transport Example
"transport": { "type": "smtp”, "options": { "service": "gmail", "auth": { "user": "soajsiosaas@gmail.com", "pass": "soajs.demo.1!" } } }
Example #2
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>"
Add Comment