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 forms are not working for Emails on Remote Server

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

  1. Emiliano

    Emiliano Active Member

    Joined:
    May 13, 2011
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  2. MikeDVB

    MikeDVB Well-Known Member
    PartnerNOC

    Joined:
    Jun 4, 2008
    Messages:
    212
    Likes Received:
    3
    Trophy Points:
    18
    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
     
  3. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    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.
     
  4. kpmedia

    kpmedia Well-Known Member

    Joined:
    Feb 13, 2011
    Messages:
    85
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    USA, Europe
    cPanel Access Level:
    Root Administrator
    Do the php forms use smtp or php mail()?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    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.
     
Loading...

Share This Page