PDA

View Full Version : Vosgien, thank you so much


LaGioconda
04-06-2003, 09:28 AM
to Vosgien Shalom and Shalom and thank you so much for your reply!.
I really apreciate it.
It wasn't not realy help me, but im still get crazy for a bit until "I DID IT!!!!".
Now i get the response to my email, and thear is a "new problem" i get the message all togheter in an only line.
my new script is:
<?php
$message=$id= $_POST['id'];
$message.=$addres= $_POST['addres'];
$message.=$city= $_POST['city'];
$message.=$tel= $_POST['tel'];
$message.=$native= $_POST['native'];
$message.=$birth= $_POST['birth'];
$message.=$celular= $_POST['celular'];
mail("my@email", $name, $message, "From: PHPMailer\nReply-To: $email\nX-Mailer: PHP/" . phpversion());
?>
i try <br>, i try olso \en like i so in tutorials. may be im not place them rigt. but non of them work
do you have a tip?

CyanBlue
04-06-2003, 09:56 AM
Howdy...

I see that you have tried <BR>, but try it one more time...
Also do the same thing with "\r\n" instead of "<BR>"...<?php
$headers = "From: PHPMailer\nReply-To: $email\nX-Mailer: PHP/\nMIME-Version: 1.0\nContent-type: text/html; charset=iso-8859-1";
$message=$id= $_POST['id'] . "<BR>";
$message.=$addres= $_POST['addres'] . "<BR>";
$message.=$city= $_POST['city'] . "<BR>";
$message.=$tel= $_POST['tel'] . "<BR>";
$message.=$native= $_POST['native'] . "<BR>";
$message.=$birth= $_POST['birth'] . "<BR>";
$message.=$celular= $_POST['celular'];
mail("my@email", $name, $message, $headers);
?>and let me know...

CyanBlue
04-06-2003, 10:06 AM
Oh... Also, try with different mail client programs... Some treats carriage return character differently with others...

I just tried <BR> with this code and I was able to see the carriage returns in each lines...
I just made up those variables to see something in the mail...
I have used IE 6 to see my web mails...
<?php
$email = "CyanBlue@myemailaddress.com";
$name = "NAME";
$id = "ID";
$addres = "ADDRES";
$city = "CITY";
$tel = "TEL";
$native = "NATIVE";
$birth = "BIRTH";
$celular = "CELULAR";
$headers = "From: PHPMailer\nReply-To: $email\nX-Mailer: PHP/\nMIME-Version: 1.0\nContent-type: text/html; charset=iso-8859-1";
$message = "$id= $_POST['id']<BR>";
$message.= "$addres= $_POST['addres']<BR>";
$message.= "$city= $_POST['city']<BR>";
$message.= "$tel= $_POST['tel']<BR>";
$message.= "$native= $_POST['native']<BR>";
$message.= "$birth= $_POST['birth']<BR>";
$message.= "$celular= $_POST['celular']";
mail("CyanBlue@myemailaddress.com", $name, $message, $headers);
?>I see this on my mailbox...ID=
ADDRES=
CITY=
TEL=
NATIVE=
BIRTH=
CELULAR=