RE: [PHP] CRLF Problem
| From: | Joe Sheble aka Wizaerd | Date: | Fri, 29 Sep 2000 15:10:36 +0000 |
| Subject: | RE: [PHP] CRLF Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18055@lists.php.net to get a copy of this message | ||
It seems to me, and I'm by no means an expert, that if you're sending an
HTML email, carriage returns and line feeds are moot, because HTML doesn't
recognize them at all. HTML only recognizes <BR> for newlines....
Joseph E. Sheble
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3D, Graphics,
ColdFusion, PHP, and mySQL
http://www.wizaerd.com
=================================
> -----Original Message-----
> From: sk-sly@gmx.net [mailto:sk-sly@gmx.net]
> Sent: Friday, September 29, 2000 4:55 AM
> To: php-general@lists.php.net
> Subject: [PHP] CRLF Problem
>
>
> sk-sly@online.de
>
> I have to send a HTML-Mail.
>
> it seems i have a problem with the CRLF
>
> $cr=chr(0x0D);
> $lf=chr(0x0A);
> $crlf=a_merge($cr, $lf, '');
>
> //a_merge just works as array_merge unter PHP4
>
> $to='test@test.org';
> $subject='my_subject';
> $from='sender@sender.org';
>
> $ascmsg='This is the ASCII-Version';
> $ascmsg=a_merge($ascmsg, 'this is the second line', $crlf);
>
> $htmlmsg='<html><head><meta http-equiv="Content-Type"
> content="text/html; charset=iso-8859-1"></head><body>This is the
> <b>HTML</b>-Version</body></html>';
>
> $header='From:';
> $header=a_merge($header, $from, ' ');
> $header=a_merge($header, 'Reply-To:', $crlf);
> $header=a_merge($header, $from, ' ');
> $header=a_merge($header, 'MIME-Version: 1.0', $crlf);
> $header=a_merge($header, 'Content-Type: multipart/alternative;
> boundary=--SK--JE--', $crlf);
>
> $message='----SK--JE--';
> $message=a_merge($message, $crlf, '');
>
> $message=a_merge($message, 'Content-Type: text/plain;
> charset="iso-8859-1"', $crlf);
> $message=a_merge($message, $crlf, '');
> $message=a_merge($message, $ascmsg, $crlf);
> $message=a_merge($message, '----SK--JE--', $crlf);
>
> $message=a_merge($message, 'Content-Type: text/html;
> charset="iso-8859-1"', $crlf);
> $message=a_merge($message, $crlf, '');
> $message=a_merge($message, $htmlmsg, $crlf);
> $message=a_merge($message, '----SK--JE--', $crlf);
>
> mail($to, $subject, $message, $header);
>
>
> It works very well when I fetch this mail with Netscape Messenger.
> Outlook doesn't understand the $crlf !
>
> How create a standart CRLF ?
>
> --
> Sent through GMX FreeMail - http://www.gmx.net
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>