PDA

View Full Version : php mail() ?!help!


tai4hang
09-04-2002, 03:11 AM
Dear all,

when i use the mail() function of php, it can't work properly and always return false, what wrong with it??

and what should i set at the server? i am using the sun server.
how to set the php.ini file at server??


$subject = $HTTP_POST_VARS['subject'];
$message = $HTTP_POST_VARS['message'];
$test_recipient = $HTTP_POST_VARS['test_recipient'];

$err_send = mail($test_recipient, $subject, $message);


Thx!

Nightfire
09-04-2002, 03:20 AM
Does your server have smtp server?

tai4hang
09-04-2002, 03:37 AM
yes, it does have....
now in my php.ini file, the SMTP parameter is set to localhost, is it correct??