skip to Main Content

SendGrid API 400 – Nginx

I'm trying to follow SendGrid's integration here with no luck. Currently I'm trying to send an email on login (just so I have a quick way to test it), and I keep getting 400 Bad Request as a response. I've…

VIEW QUESTION

unable to send email using sendgrid – Nginx

// this is my code //unable to send email using sendgrid // finding email from body exports.signUp=async (req,res)=>{ const userExists = await User.findOne({ email: req.body.email }) if(userExists){ return res.status(400).json({ error:"eamil is already taken" }) } const token = jwt.sign(req.body, process.env.ACCOUNT_ACTIVATION,{expiresIn:'20m'})…

VIEW QUESTION
Back To Top
Search