Configure UUChat To Send Email

NodeMailer

UUChat needs send emails when sending offline messages to customer, user invitations and password resets. UUChat uses Nodemailer which is a single module with zero dependencies to allow easy as cake email sending. NodeMailer uses HTML content, as well as plain text alternative.You can find more features in NodeMailer about page.

Email Config

Before config you need an account with an email sending service.We use gmail service as an example in this article.
Edit src/cofig.json and add your mail settings. You can add gmail config like this:

"mail":{
    "host": "smtp.gmail.com",
    "port": 465,
    "secure": true,
    "auth": {
      "user": "xxx@gmail.com",
      "pass": "xxx"
    },
    "connectionTimeout": 6000,
    "greetingTimeout": 6000
  }
  1. connectionTimeout: how many milliseconds to wait for the connection to establish.
  2. greetingTimeout: how many milliseconds to wait for the greeting after connection is established.

Your can also use other email sending service, such as Mailgun or Amazon SES. We highly recommend Mailgun.

Show Comments