Yogesh Chavan
Oct 22, 2020

--

@stephyx I think you missed to add .env file with the email and password. I just cloned your repository and verified with my email and password and it worked. I got email from your Get in touch form.

Things I did 👇

1. Cloned your repository.

2. Added email and password credentials in .env file

3. Executed npm install and then npm run start-app command from the terminal

4. Accessed the application at http://localhost:3030/contact

4. Filled-in details and submitted the form.

5. Received email in my gmail account.

One thing I noticed which is not related to this issue is that, after refreshing the http://localhost:3030/contact page, I'm getting "Cannot GET /contact" page error.

To fix this, you need to add the below code inside server/index.js file just before the app.listen line

app.get('*', (req, res) => {

res.sendFile(path.join(__dirname, '..', 'build', 'index.html'));

});

The above code will send the index.html of your build folder is there is no matching route found so your react application will handle that and will display the /contact route.

--

--

Yogesh Chavan
Yogesh Chavan

Responses (2)