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

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

am 17.04.2008 22:30:15 von AnrDaemon

Greetings, Chuck W1CEW.
In reply to Your message dated Tuesday, March 25, 2008, 22:54:40,

> So, I don't quite get how to solve this. See code example below. 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 ' . "\r\n";
> $subject = 'Your posted message';
> mail($to, $subject, $message, $headers);

Did You tried to not put ending ."\r\n" in the $headers variable?


--
Sincerely Yours, AnrDaemon