You've called this as ` nodemailer.send(feedbackData.contact || feedBackData.user || null); ` from `routes/feedback.js`, so you'll need to bail out here if email is null.