This module provides a contact form in a Collagen.js website.
The contact form can be found by navigating to /contact
or by clicking on the
"Contact" link in the top navigation bar.
To install, run npm install collagen-contact
and add
require('collagen-contact')
to your index.js
file.
Collagen Contact will use the Sendmail messaging transport by default. To
override, add the following information to your collagen.json
file:
{
"mailer": {
"type": "SMTP",
"service": "Gmail",
"auth": {
"user": "gmail.user@gmail.com",
"pass": "gmailpass"
}
}
}
Have a look at the nodemailer documentation for all the options (scroll down to "Possible transport methods").
All contact messages will be sent to the email attribute configured in your
collagen.json
file.