Re: mail()
| From: | Bastian Vogt | Date: | Thu, 19 Dec 2002 13:47:40 +0000 |
| Subject: | Re: mail() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128851@lists.php.net to get a copy of this message | ||
Hi,
just add "Content-Type: text/html" to the header information of the mail:
mail($email,'Thanks',$mailcontent,"From:aircharterunited.com\nContent-Type:
text/html");
HTH,
Bastian
> 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");
--
Mit freundlichem Gruß
i.A. Bastian Vogt
+ KomTel Gesellschaft fuer
+ Kommunikations- und
+ Informationsdienste mbH
+
+ Bastian Vogt
+ Nordermarkt 1, D-24937 Flensburg
+
+ Fon: +49-461-9090-00, Fax: +49-461-9090-031
+ EMail: bastian.vogt@komtel.net, Internet: http://www.komtel.net
+ -------------------------------------------------------------------- +