Discussion: Emails aren't sending
Afficher un message
Vieux 21/06/2007, 22h03   #1
laredotornado@zipmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Emails aren't sending

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

  Réponse avec citation
 
Page generated in 0,15158 seconds with 9 queries