RE: [PHP] Re: mail()

From: Date: Fri, 20 Dec 2002 14:18:38 +0000
Subject: RE: [PHP] Re: mail()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-128984@lists.php.net to get a copy of this message
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:mike@basementideas.com] Sent: Thursday, December 19, 2002 8:51 AM To: php-general@lists.php.net 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" <epeloke@echoman.com> wrote in message news:NFBBIIKNALMFFNANEKEFMELIDBAA.epeloke@echoman.com... > 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

« previous php.general (#128984) next »