jer2eydevil88

Member
Mar 14, 2006
20
0
151
The server I am hosting my website on is running WHM 11.15.0 cPanel 11.17.0-S19434.

I am trying to setup a contact form on my website but it seems something is blocking the mail from going out. I used a processing script written by my friend and tested it successfully with both WAMP and OS X. When testing in the local environments the script is working fine and sending out emails. When I put it live none of my attempts to use the form have produced an email.

To troubleshoot I went ahead and tried another php form processing script called NVform.php and had the same results of no emails getting out.

Is there something I need to enable/disable in WHM to ensure that I can use php based contact forms?
 

jer2eydevil88

Member
Mar 14, 2006
20
0
151
I discovered the problem it was with the MX records being different on this server than the domain.

We use Google Apps for email and Godaddy for DNS with our CPanel server handling just HTTP traffic. When you create an account on the WHM/Cpanel server it creates MX records for itself and registers the domain with the DNS server it runs. So when I was submitting a form it was mailing itself the mail instead of handing it over to Google for delivery. I went in and modified the MX records for the domains I want to use the form and now its working great!
 

jmauro8ac

Registered
Jul 17, 2008
3
0
51
I discovered the problem it was with the MX records being different on this server than the domain.

We use Google Apps for email and Godaddy for DNS with our CPanel server handling just HTTP traffic. When you create an account on the WHM/Cpanel server it creates MX records for itself and registers the domain with the DNS server it runs. So when I was submitting a form it was mailing itself the mail instead of handing it over to Google for delivery. I went in and modified the MX records for the domains I want to use the form and now its working great!
Ok but then you can not still using your google apps and php mail form in the same time