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!

mailing from php

Discussion in 'E-mail Discussion' started by elleryjh, Jul 15, 2003.

  1. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    166
    There's a simple php script called mail.php:
    <? mail("me@domain.com", "test", "test");?>

    When I go to http://domain.com/mail.php, I don't receive any email.

    But, if I type php mail.php at the command line as the same user, it works fine.

    PHPsuexec is on, and there is no error in suexec_log or error_log. The page loads as normal. Any ideas? Thanks.

    cPanel.net Support Ticket Number:
     
  2. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    166
    Check your mail queue for the messages sent via the web. If they're in the queue and can be delivered without issue; then:

    /scripts/updatenow
    /scripts/updatephpconf
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    166
    Thank you so much, ciphervendor! Worked like a charm :)
    -Ellery

    cPanel.net Support Ticket Number:
     
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