DEV Community

Discussion on: How to implement email functionality with Node.js, React.js, Nodemailer, and OAuth2

Collapse
 
jlong4223 profile image
Jared Long

Hmm I think you could try adding the http:// to the beginning of the url:
curl -d -url http://localhost:3001/send

Collapse
 
jlong4223 profile image
Jared Long • Edited

If that doesn't work, you also don't have to use cUrl and could try hitting the route with Postman if you have it.
Or if you use VSCode, you could install the ThunderClient Extension for testing API routes directly inside of VSCode. marketplace.visualstudio.com/items...

Thread Thread
 
shakes103 profile image
Onyema O.

Okay. I will try this instead and see how it turns out. Thanks!