[thelist] Outlook not satisfied with wordwrap() (PHP)?
Ben Phillips
ben at inchima.com
Wed Jun 26 04:21:01 CDT 2002
> To all who have some experience with sending email with PHP
>
> I've tested and tried and googled for the last two days, to
> no avail... am I just waisting my time?
>
> A PHP newsletter script is pulling text from a DB and wraps it
> with $newtext = wordwrap( $text,76,"\r\n" );
you only need the "\n" not "\r\n", iirc.
i do the following on all text before sending it in an email, ensuring
line breaks are \n and not \r\n or \r.
$text = ereg_replace("\r\n","\n",$text);
$text = ereg_replace("\r","\n",$text);
benji.
inchima.com.
More information about the thelist
mailing list