|
Posted by laredotornado@zipmail.com on 06/21/07 21:03
Hi,
I'm using PHP 4.4.4 with Apache 2 on Fedora Core 5 Linux. I'm trying
to send out an email, and although I'm told everything is successful,
I'm not receiving anything in the designated inbox. The return value
from the php "mail" call is 1 and there is nothing in the spam
filter. What else can I do to troubleshoot where the problem is? My
code is below:
$headers = "MIME-Version: 1.0\n"
. "Content-type: text/html;
charset=iso-8859-1\n"
. "Content-Transfer-Encoding:
7bit\n"
. "From: dalvarado@domain.com
\n"
. "Return-Path:
dalvarado@domain.com\n"
. "X-Mailer: PHP " .
phpversion() . "\n"
. "Reply-to:
dalvarado@domain.com";
// TODO: handle if email fails
$retVal = mail("recipient@gmail.com", "Test
Subject", "Just a test", $headers);
print "retval: $retVal<BR>\n";
Thanks, - Dave
Navigation:
[Reply to this message]
|