Topic: Contact form
Trying to follow: https://mdbootstrap.com/docs/angular/forms/contact
But having an issue when submiting the form:
What could be the problem ? And when you say I am running a server locally, when I publish this code to production, will this server continue working ?
Damian Gemza staff answered 6 years ago
Dear @aganeto
Did you start the NodeJS server (server.js file) with command node server.js
?
It's necessary to start the server before sending an email, because, without the server, Angular can't send an email.
About running this app on production:
It will work fine, but again, you have to run the NodeJS server (server.js file). You can run it via PM2 package manager, or something similar (the server has to be turned on all the time).
Best Regards,
Damian
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.5.0
- Device: ALL
- Browser: ALL
- OS: ALL
- Provided sample code: No
- Provided link: Yes