Re: Re: mail()

From: Date: Fri, 20 Dec 2002 14:39:26 +0000
Subject: Re: Re: mail()
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-128992@lists.php.net to get a copy of this message
Hi, if you use plain text use "\n", elseif you use text/html use "<br>" (and all the other html-tags) HTH, Bastian Edward Peloke schrieb: > Can I still keep the formatting? When I added the Content-type: text/html > to the header last night, the link worked but my formatting did not. > Everything was just a long string. > > Thanks, > Eddie > > -----Original Message----- > From: Rick Emery [mailto:remery@emeryloftus.com] > Sent: Friday, December 20, 2002 9:07 AM > To: php-general@lists.php.net > Subject: Re: [PHP] Re: mail() > > that should be: > > http://www.aircharterunited.com\pages\activate_account.php?clientid=$uname > > (Grrr...that's what I get for using copy/paste from original email) > > ----- Original Message ----- > From: "Rick Emery" <remery@emeryloftus.com> > To: "Edward Peloke" <epeloke@echoman.com>; <php-general@lists.php.net> > Sent: Friday, December 20, 2002 8:04 AM > Subject: Re: [PHP] Re: mail() > > Actually, you don't need to send this as an html <A> hyperlink. Simply > using: > > http:\\www.aircharterunited.com\pages\activate_account.php?clientid=$uname > > Should work; it does for me. > > ----- Original Message ----- > From: "Edward Peloke" <epeloke@echoman.com> > To: <php-general@lists.php.net> > Sent: Friday, December 20, 2002 8:18 AM > Subject: RE: [PHP] Re: mail() > > 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 > > -- > 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#128992) next »