[thelist] Email Form Without Line Breaks
Andrew Forsberg
andrew at thepander.co.nz
Tue Nov 20 13:45:16 CST 2001
>There is something I don't understand - a line break which works for
>Eudora, and not for Outlook, how is this possible?
>
>Any help appreciated
>
>Mike
I don't know, but how about:
$body = wordwrap($body, 60);
Also, are you setting MIME types / Content-Type header fields
correctly? I had a similar problem the other day (no line breaks)
while testing a modification of an email script...
$headers = "From: <youknow at who.com>\n"
. "X-Sender: <youknow at who.com> \n"
. "X-Mailer: PHP\n"
. "X-Priority: 1\n"
. "MIME-Version: 1.0\n"
. "Content-Type: text/plain; charset='iso-8859-1'\n"
. "Content-Transfer-Encoding: 7bit\n"
. "Return-Path: <youknow at who.com>\n"
. "Errors-To: <youknow at who.com>\n";
Mail headers aren't my specialty, though, so your mileage may vary.
Oh, and one last suggestion: try using \r\n for line breaks in the
body of the email, rather than just \n
HTH
Andrew
--
Andrew Forsberg
---
uberNET - http://uber.net.nz/
the pander - http://thepander.co.nz/
More information about the thelist
mailing list