Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction:

This page is to show different variables with information of each variable that is needed to configure mail notification content.

...

transport

...

Object

...

To configure the connection with email provider

...

subject

...

string

...

Mail Subject

...

from

...

string

...

from email

...

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

...

SMTP Configuration in common fields


You can browse to SMTP transport module for Nodemailer documentation to make sure you use the right configuration.

Code Block
languagejs
titleSMTP 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:

  1. User variables used here like username and firstName can be found under the User Model
  2. limit: expiry of the link in hours.
  3. Links: Check the section below with an example about links.

Example

Custom Content of mail.

Code Block
languagexml
titleMail 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>"

Variables used:

...

Links

This section will list the links in mail Configuration based on the mail subject. 

...