The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP Sendmail

Discussion in 'E-mail Discussions' started by jer2eydevil88, Feb 1, 2008.

  1. jer2eydevil88

    jer2eydevil88 Member

    Joined:
    Mar 14, 2006
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  2. jer2eydevil88

    jer2eydevil88 Member

    Joined:
    Mar 14, 2006
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    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!
     
  3. jmauro8ac

    jmauro8ac Registered

    Joined:
    Jul 17, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Ok but then you can not still using your google apps and php mail form in the same time
     
Loading...

Share This Page