Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

PHP forms are not working for Emails on Remote Server

Discussion in 'E-mail Discussion' started by Emiliano, Oct 3, 2014.

  1. Emiliano

    Emiliano Active Member

    Joined:
    May 13, 2011
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    56
    Location:
    Orlando, Florida, United States
    Hello,

    I have a cpanel account and the emails for that cpanel account are on a different server where the emails are pointed with MX records from the Domain settings on the domain registrar.

    Now, I have created a few php forms that send emails to the emails set up on the MX server but the emails are not being delivered to that MX server.
    I have also tried to change the email on the forms to other emails that i have on the cpanel server and emails there work perfectly fine. Also they do send emails to yahoo/gmail/msn emails without problems.

    The problem is that although the MX emails work fine they can't receive emails from submitted PHP forms.

    Anyone has encountered this issue previously, that can help me?

    I have CSF, CXS firewall and cpHulk installed.

    Thank you
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. MikeDVB

    MikeDVB Well-Known Member
    PartnerNOC

    Joined:
    Jun 4, 2008
    Messages:
    212
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Indiana, USA
    WHM -> Edit DNS Zone -> Choose the domain where the email is hosted remotely -> At the bottom select 'remote' -> Save
    [or]
    cPanel -> MX Editor -> Choose the domain where email is hosted remotely -> Choose 'remote' -> Save
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,789
    Likes Received:
    83
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello :) ,

    First contact your hosting provder and ask them to check the mail logs of your account so that you can find out the exact cause of your mail issues. Also I will suggest you please use SMTP authentication in your php forms mail setting and check it.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. kpmedia

    kpmedia Well-Known Member

    Joined:
    Feb 13, 2011
    Messages:
    87
    Likes Received:
    1
    Trophy Points:
    56
    Location:
    USA, Europe
    cPanel Access Level:
    Root Administrator
    Do the php forms use smtp or php mail()?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,791
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, please ensure you select "Remote Mail Exchanger" under "Email Routing" via "WHM Home » DNS Functions » Edit DNS Zone" or "cPanel - MX Entry".

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice