This topic is locked

Php Qmail

7/15/2009 4:23:18 AM
PHPRunner General questions
D
dcrera author

Hi
Our engineer changed the mail on the server to Qmail.
Now none of my emails are getting delivered.
How and where do I need to tweak the installation to get qmail to work ?
code :
ini_set('SMTP','127.0.0.1');
$email="rajur@elec.durban.gov.za";

$message=$values["MESSAGE"];

$subject="Query - ".$_SESSION["DANO"];

$from=rtrim($values["EMAIL"]).'@elec.durban.gov.za';
//Headers

$headers = "To: $email" . "\r\n";

$headers.= "From: $from" . "\r\n";

$headers.= "MIME-Version: 1.0" . "\r\n";

$headers.= "Content-Type: text/html; charset=\"iso-8859-1" . "\r\n";
mail($email, $subject, $message, $headers);
Thanks

J
Jane 7/15/2009

Hi,
all SMTP settings are in the php.ini file.