ok, this is basically what i have :
PHP Code:
// SELECT THE USER
$emailquery = mysql_query("SELECT Email FROM $table WHERE ID='$ID'") or die (mysql_error());
//only one row should be selected, or else something is wrong.
$row = mysql_fetch_array($emailquery);
$Email = $row["Email"];
$headers = "From : \"$sender_name\" <$sender_email>\n";
$subject = "$subject";
$message = "this is where\rpart of the\rmessage is pre-entered\r**************************************************************\r$message";
//EMAIL THE USER THEIR MESSAGE
$mailsent = mail($Email, $subject, $message, $headers);
if ($mailsent){
echo "mail sent";
}else{
echo "mail is HAS NOT sent";
}
//END OF EMAIL
that looks like this in outlook which is fine:
this is where
part of the
message is pre-entered
**************************************************************
bla bla bla bla
but it looks like this in outlook express :
this is wherepart of themessage is pre-entered**************************************************************bla bla bla bla
but when i changed the script to this :
$message = "this is where
part of the
message is pre-entered
**************************************************************
$message
it looked fine if both.
is it possible to omit any \r and \n and still preserve the formatting of the email text across all email application or cross-platform?
i guess that's the main question.
thanks.
Bookmarks