I changed this and it works fine but I now lose my formating.  It doesn't
seem to recognize the \n breaks.  Am I asking for to much?

-----Original Message-----
From: Mike Mannakee [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 8:51 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: mail()


You need to set the correct header type:

Content-type: text/html

otherwise it defaults to:

Content-type: text/plain

Mike


"Edward Peloke" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello all,
>
> I am using the following code but when I view the sent e-mail (in my yahoo
> account) the link info is all plain text.  I see the <a tag and
everything.
> How do I create it as a link?  I know I can send them because I have done
it
> before in my yahoo e-mail, just never through php and mail().
>
> Thanks,
> Eddie
>
> $mailcontent="Thank you for registering with AirCharterUnited \n"
>                      ."Your Username is $uname and your password is $pword
> \n"
>                      ."Please click the following link to activate your
> account \n"
>                ."<a
>
href='http:\\www.aircharterunited.com\pages\activate_account.php?clientid=$u
> name'>Activate Account</a>";
>                mail($email,'Thanks',$mailcontent,"From:
> aircharterunited.com");
>



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to