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: info@kimimi.net\r\n" ;
$headers .= "To: $email <".$email.">\r\n" ;
$headers .= "Reply-To: info@kimimi.net\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);

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.