i keep reading "simply do this with PHPs built-in Mail() function"... wtfever! i've been trying to get this working for a week, and it's still a big mystery...
my PHP script:
my PHP.ini [i'm using MAC OS X (unix)]
the problem is that it keeps echoing that the mail has been sent, but i never receive anything... WHY isn't this working?
please help... this is driving me crazy.
thanks
my PHP script:
Code:
<?php
$to = "jmattie@sympatico.ca";
$subject = "PHP Mail Test";
$body = "Testing.\n .
This is a basic text PHP Mail Function test";
$headers .= 'From: no-reply@image_ctrl.ca' . "\n";
if (mail($to, $subject, $body, $headers)) {
echo("<p>Mail sent to $to</p>");
} else {
echo("<p>Message delivery failed</p>");
}
?>
Code:
[mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from = me@example.com ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). sendmail_path = "/usr/sbin/sendmail -t -i" ; Force the addition of the specified parameters to be passed as extra parameters ; to the sendmail binary. These parameters will always replace the value of ; the 5th parameter to mail(), even in safe mode. ;mail.force_extra_parameters =
please help... this is driving me crazy.
thanks
Comment