Form submission not working - always being sent to root@localhost.com

Permalink
I am trying to send the form notification to my email address but it seems to be sending it out to root@localhost.com.

I have used root@localhost.com address while I was building the site in my local server. After transferring the site over to the remote server, I changed the notification email address in the form block to myaddress@gmail.com but for some reason, it seems it is still trying to send notifications to root@localhost.com.

This is what I can see in the logs:
3:18:58 PM sent_emails **EMAILS ARE ENABLED. THIS EMAIL WAS SENT TO mail()**
Template Used: block_form_submission
To: root@localhost.com
From: service@mydomain.com
Subject: Contact Form Submission
Body:
There has been a submission of the form Contact on through your concrete5 website.

Title
Mr

Name
John

Email Address
test@hotmail.com

Contact
054985535

Message
Test

To:root@localhost.com should actually be myaddress@gmail.com. Not sure what's happening.

BlueFractals
 
jero replied on at Permalink Best Answer Reply
jero
Is it possible that you haven't approved the change to the page, and you're submitting from another browser that's not logged in? Looking through the controller, there seems little margin for error.

If that's not the case, use phpmyadmin, or whatever tool you have to check the values in the btForm table.
BlueFractals replied on at Permalink Reply
BlueFractals
Hi jero,
You are right. For some reason, when I transferred the database across to the server, my form (which is part of the stack) was left unapproved or something like that. I clicked on Edit and re-saved the stack and re-approved it. Then it started working again. A bit weird but anyway it works.

Thanks so much for providing tips. It's been extremely helpful.
jero replied on at Permalink Reply
jero
You're welcome. Glad it's working now.