Updated contact form mail options
This commit is contained in:
@ -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) {
|
||||||
|
Reference in New Issue
Block a user