|
Posted by Michael Vilain on 06/21/07 23:19
In article <1182459839.342113.9280@a26g2000pre.googlegroups.com>,
"laredotornado@zipmail.com" <laredotornado@zipmail.com> wrote:
> 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
What's in the mail system's log files, whereever they are are? If
they're not being sent, you can catch that by looking there. If they
are being sent, then the problem is on the remote machine and out of
your control.
--
DeeDee, don't press that button! DeeDee! NO! Dee...
[Back to original message]
|