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.
<?php
include('Mail.php');
$recipients = '[email protected]';
$headers['From'] = '[email protected]';
$headers['To'] = '[email protected]';
$headers['Subject'] = 'Test message';
$body = 'Test message';
$params['host'] = 'mail.domain.org';
$params['auth'] = TRUE;
$params['username'] = '[email protected]';
$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.
LINKS
http://pear.php.net/manual/en/
http://pear.php.net/manual/en/package.mail.mail.send.php
http://pear.php.net/manual/en/package.mail.mail.factory.php
http://pear.php.net/package/Mail
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.
<?php
include('Mail.php');
$recipients = '[email protected]';
$headers['From'] = '[email protected]';
$headers['To'] = '[email protected]';
$headers['Subject'] = 'Test message';
$body = 'Test message';
$params['host'] = 'mail.domain.org';
$params['auth'] = TRUE;
$params['username'] = '[email protected]';
$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.
LINKS
http://pear.php.net/manual/en/
http://pear.php.net/manual/en/package.mail.mail.send.php
http://pear.php.net/manual/en/package.mail.mail.factory.php
http://pear.php.net/package/Mail