How to fix mail() double line spacing in message body?

This is a discussion on How to fix mail() double line spacing in message body? within the PHP General forums, part of the PHP Programming Forums category; So, I don't quite get how to solve this. See code example below, which shows "normal" CR/...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-25-2008
Chuck W1CEW
 
Posts: n/a
Default How to fix mail() double line spacing in message body?

So, I don't quite get how to solve this. See code example below,
which shows "normal" CR/LF. The
basic problem is that emails that my form-to-mails generate using the
mail() function consistently put in two CR/LF's for every apparent CF/
LF. How does this happen, how to fix the...

Double line spaces

that appear

like this in the body?

-Chuck

$message ='Dear ' . Trim($fullname) .',
Thank you for your interest in our product.

Blah blah blah blah blah

Sincerely,

Joe Schmoe';

$headers .= 'From: Web server <w...@domainname.com>' . "\r\n";
$subject = 'Your posted message';

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The example above would generate a message that reads like:

Dear Mr. Smith,

Thank you for your interest in our product.


Blah blah blah.


Sincerely,


Joe Schmoe.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:28 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0