-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Email form with nodemailer - how to get the routes working? #140
Comments
Are you still looking for a solution to this? I just set one up here using nodemailer |
I'll just post my solution any way:
Here is the actual contact form:
Let me know if you have any questions |
hey, @jmelendev, awesome work figuring this out. @jemelyah I'll close this as I believe it was answered. Feel free to reopen if you have any more questions regarding this. |
Is there anything more to do? Can't get it working on my system. I can submit the form, but getting an empty body response. Any Idea? |
@sergejr to read the body you need to add app.use(bodyParser.json()); but this caused the Admin section to stop saving in save_cms so i had to use req.on('data',... , below is my solution with basic Recaptcha integration.
|
I try to make a contact form in the front, that will send an email thru the nodemailer in the back - maybe someone has done thhis before and has a solution? Actually, my routes don't work as expected, maybe I am doing something wrong?
The text was updated successfully, but these errors were encountered: