PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > Mail isn't coming out right
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Mail isn't coming out right

Réponse
 
LinkBack Outils de la discussion
Vieux 04/03/2008, 05h40   #1
Shooter
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Mail isn't coming out right

I'm having a mismatch in the Email being rec'd and the code generating it.
The mail always comes in as
From: anonymous@ip-XXX-XXX-XXX-XXX.ip.myhostcompany.net, and the "From"
address input on the mail form appears in the body of the mail message.
Here's the code:

if ($All=="1") {
$headers .= "From: $FROM <$FROM>\n";
$headers .= "X-Sender: <$FROM>\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal
$headers .= "Return-Path: <$FROM>\n";
//Uncomment this to send html format
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
$query="SELECT email from tblPhotographers
WHERE email !=''";
$result=mysql_query($query) or die(mysql_error("Could not execute
query."));
while($row = mysql_fetch_array($result)) {
$email = $row['email'];
$email = rtrim($email);
$to = $email;
mail($to, $subject, $message, $headers);
echo "Your Email has been sent to: ".$to . "<BR>";
} //end while($row = mysql_fetch_array($result))
} //end if($All=="1")

The mail coming in though, looks like this - and I can't figure out why
things aren't lining up.

customeremail@msn.com
The following information has been submitted from the website:
FROM: Jennifer Smith
EMAIL: customeremail@msn.com
WEBSITE:
MESSAGE: Miscellaneous text here.


Does anyone see anything that I'm missing, presumably in my headers???

Thanx,
Wm




  Réponse avec citation
Vieux 14/03/2008, 07h25   #2
Shooter
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Mail isn't coming out right

Anyone...???


"Shooter" <SDshooter@hotmail.com> wrote in message
news:47ccd2d2$0$24097$4c368faf@roadrunner.com...
> I'm having a mismatch in the Email being rec'd and the code generating it.
> The mail always comes in as
> From: anonymous@ip-XXX-XXX-XXX-XXX.ip.myhostcompany.net, and the "From"
> address input on the mail form appears in the body of the mail message.
> Here's the code:
>
> if ($All=="1") {
> $headers .= "From: $FROM <$FROM>\n";
> $headers .= "X-Sender: <$FROM>\n";
> $headers .= "X-MSMail-Priority: Normal\n";
> $headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal
> $headers .= "Return-Path: <$FROM>\n";
> //Uncomment this to send html format
> $headers .= "Content-Type: text/html; charset=iso-8859-1\n";
> $query="SELECT email from tblPhotographers
> WHERE email !=''";
> $result=mysql_query($query) or die(mysql_error("Could not execute
> query."));
> while($row = mysql_fetch_array($result)) {
> $email = $row['email'];
> $email = rtrim($email);
> $to = $email;
> mail($to, $subject, $message, $headers);
> echo "Your Email has been sent to: ".$to . "<BR>";
> } //end while($row = mysql_fetch_array($result))
> } //end if($All=="1")
>
> The mail coming in though, looks like this - and I can't figure out why
> things aren't lining up.
>
> customeremail@msn.com
> The following information has been submitted from the website:
> FROM: Jennifer Smith
> EMAIL: customeremail@msn.com
> WEBSITE:
> MESSAGE: Miscellaneous text here.
>
>
> Does anyone see anything that I'm missing, presumably in my headers???
>
> Thanx,
> Wm
>
>
>
>



  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 13h34.


É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,12605 seconds with 10 queries