Use \r\n which is spec, and unfriendly mailers from Microsoft won't "embrace
and extend" enough to accept just \n which is Unix-standard.
What a surprise.
Oh -- it won't be HTML email. For *that* you need to send mime attachments.
There are multiple functions to do this in code archives such as at Manuel
Lemos' site. Note that many recipients delete HTML email unread.
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: "Joe Njeru" <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Monday, February 19, 2001 4:56 AM
Subject: [PHP] Mail function
> Hi,
> I am trying to send an email message using the mail() function. However
when
> I put new line breaks -> \n I get the following error
> Warning: Server Error in d:/wwwroot/admin/userdetails.php on line 12
>
> But when I remove the newlines the function executes.
> What should I do to be able to send HTML mail with <br> or alternative to
\n
> .
>
> Thanks in advance,
> Joe Njeru
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]