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 Mail not working

Discussion in 'E-mail Discussions' started by prashant_ohol, Oct 28, 2013.

  1. prashant_ohol

    prashant_ohol Active Member

    Joined:
    Nov 22, 2004
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Strange thing.

    PHP mails are not working.. nothing in exim_mainlog.

    Did check “nobody” setting in WHM
    Mail function is not disabled in php.ini
    Normal mails are working fine
    eximmailtrap=0

    what could be the reason for this problem?
     
  2. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
  3. prashant_ohol

    prashant_ohol Active Member

    Joined:
    Nov 22, 2004
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    Yes I am using the below script

    <?php
    mail("email@domain.com", "trying", "test");
    ?>


    tail -f /var/log/exim_mainlog | grep email@domain.com

    about logs are not printing anything...

    - - - Updated - - -

    Using any webmail client.. Mail works fine for domain but if we test it using php mail is doesn't work..
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page