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 function not working, Nobody user prevented.

Discussion in 'E-mail Discussion' started by antodeepak, Jan 25, 2006.

  1. antodeepak

    antodeepak Active Member

    Jan 24, 2005
    Likes Received:
    Trophy Points:
    kerala, India
    Hello biggies,

    Thought to share a thread on issue with php Mail function + nobody user.

    If the nobody user got blocked at you server and if it is causing any issue with you form mail, you can do as follows.

    Enable phpsuexec - You can implement this by compeiling the php using the script "easyapache".

    Inlcude the PEAR mail function with your form Mail and also include Mail.php
    You can use the following PEAR Mail function.


    $recipients = '';

    $headers['From'] = '';
    $headers['To'] = '';
    $headers['Subject'] = 'Test message';

    $body = 'Test message';

    $params['host'] = '';
    $params['auth'] = TRUE;
    $params['username'] = '';
    $params['password'] = 'test';
    // Create the mail object using the Mail::factory method
    $mail_object =& Mail::factory('smtp', $params);

    $mail_object->send($recipients, $headers, $body);?>

    The following url's will help you to integrate it in a easy.

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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