DEV Community

Discussion on: Test Emails in Your Node/Express Apps using Mailtrap.io

Collapse
 
raydot profile image
raydot

Hi Kwabena! This was pretty great but I think there are some errors. When I ran the app it could not even start because "req.body.email" was not defined. When I hard coded the recipient e-mail it worked, but the first time the app just runs and does not wait for information from POST. Once it's done sending that first pass I could not get it to return info from cURL or Postman. Any hints?

Again, great tutorial! I did not know about Mailtrap before I came across it.

Collapse
 
raydot profile image
raydot

Oops, nevermind, I see what I did! I should have tucked all of the demo inside of the POST route brackets. My bad! Now the tutorial is even better. Thanks again!

Collapse
 
kwabenberko profile image
Kwabena Bio Berko

😄
Glad you've resolved it.