Updated contact form mail options

This commit is contained in:
Sahat Yalkabov
2014-03-16 13:46:08 -04:00
parent 83383c8bc6
commit 0e30f2f7b3

View File

@ -48,13 +48,13 @@ exports.postContact = function(req, res) {
var name = req.body.name; var name = req.body.name;
var body = req.body.message; var body = req.body.message;
var to = 'your@email.com'; var to = 'your@email.com';
var subject = 'API Example | Contact Form'; var subject = 'Contact Form | Hackathon Starter';
var mailOptions = { var mailOptions = {
to: to, to: to,
from: from, from: from,
subject: subject, subject: subject,
text: body + '\n\n' + name text: body
}; };
smtpTransport.sendMail(mailOptions, function(err) { smtpTransport.sendMail(mailOptions, function(err) {