Jump to content

[SOLVED] Carriage return problem inside a email message.


ajarantes

Recommended Posts

The e-mail I'm sending insists in not recognize the line-feed/carriage-return "\n\r". I send it to Gmail, Yahoo, Hotmail and the text always arrive as one single paragraph. The "\n\r" don't show up but also don't create new lines or paragraphs.

 

Only when I send to one of my own e-mail addresses and open with "squirrelMail" is that it opens correctly. But when I download the same e-mail to my computer and open with Thunderbird, it goes back to one only paragraph.

 

Do you have any idea what else I can try? Thanks.

 

Here is the code:

 

$to = $mail;
$subject = $subj;
$message = "Dear $name,\r\r\n\n" .
           "This e-mail was sent to you to confirm your registration with KIMIMI.\r\r\n\n" .
           "You have 24 hours to proceed with this confirmation or your registration will be lost." .
           "To finalize the process and start using all the wonderful features of KIMIMI, " . 
           "clik on the link below or, if you do not allow HTML in the e-mails " .
           "you receive, copy and paste the link to your browser address area \r\r\n\n" .
           "http://www.kimimi.net/confreg.php?id=$confstring\r\r\n\n" .
           "If you have any problems, please contact us.\r\r\n\n" . 
           "Welcome to KIMIMI\r\nThe Kimimi Team\r\nwww.kimimi.net";
$headers = "From: [email protected]\r\n" ;
$headers .= "To: $email <".$email.">\r\n" ;
$headers .= "Reply-To: [email protected]\r\n" ;
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "X-Mailer: PHP/" . phpversion() . "\r\n";
$mail = mail($to, $subject, $message, $headers);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.