Skip to content
This repository was archived by the owner on Feb 25, 2019. It is now read-only.

Latest commit

 

History

History
26 lines (23 loc) · 893 Bytes

mailer.md

File metadata and controls

26 lines (23 loc) · 893 Bytes

Configuring the mailer

Anvil Connect uses nodemailer for sending emails for the purposes of email verification, and other functionality which is to come.

The configuration file (e.g. development.json, production.json) must have a mailer object on the top level. The options for this configuration object are identical as that of nodemailer transports, with the exception of an additionally required from property. The from property defines what e-mail address and name Anvil Connect will use in sending e-mails. It must be in the form Name <no-reply@example.com>.

{
  "mailer": {
    "from": "Hello World <test@gmail.com>",
    "view_engine": "hogan",
    "service": "Gmail",
    "auth": {
      "user": "test@gmail.com",
      "pass": "test"
    }
  },
}