You are here: Emails aren't sending « PHP Language « IT news, forums, messages
Emails aren't sending

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация