[thelist] PHP email problem

Ben Phillips ben at inchima.com
Tue Feb 5 06:23:00 CST 2002


i am having a few issues sending mails using the PHP mail() function.

i have a textarea on a web form. the message is typed in the form, which is
passed in the $message variable.

it is then sent on using
mail($email_address,$subject,stripslashes($message),$headers)

the problem is the line spacing. on a colleague's pc, running xp and outlook
2002, there are two line returns where there should only be one. on another
pc, running windows 95 and outlook 2000, there are no line spaces at all.

i've tried regular expressions to replace the line breaks with \n \n\r and
all sorts, but i can't seem to figure out the problem. any one got any
ideas?

thanks,
benji
inchima.com




More information about the thelist mailing list