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"
}
},
}