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

Discussion in 'E-mail Discussion' 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:
    156
    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:
    138
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. prashant_ohol

    prashant_ohol Active Member

    Joined:
    Nov 22, 2004
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    156
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,395
    Likes Received:
    1,951
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Is this happening for multiple accounts? Do you notice any errors in the Apache error log?

    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