Sunday, 1 July 2018

Using node mailer - question about a line of code

At the end of my POST route i have the following piece of code which is giving me an errorsmtpTrans.sendMail(mailOpts, function (error, response) {if (error) {res.render('contact-failure');}else {res.render('contact-success');The error i am getting is "Failed to lookup view "contact-failure" in views directory "Does this line of code mean i have to make a new page called contact-failure in the views folder ?I thought pages have "" not 'Any help on this i'd greatly appreciate.

Submitted July 01, 2018 at 01:16PM by Ah-here

No comments:

Post a Comment