PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > alt.comp.lang.php > Emails aren't sending
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Emails aren't sending

Réponse
 
LinkBack Outils de la discussion
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
Vieux 22/06/2007, 00h19   #2
Michael Vilain
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Emails aren't sending

In article <1182459839.342113.9280@a26g2000pre.googlegroups.c om>,
"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...



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h14.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11766 seconds with 10 queries