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:[EMAIL PROTECTED]]
> Sent: Friday, December 20, 2002 9:07 AM
> To: [EMAIL PROTECTED]
> 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" <[EMAIL PROTECTED]>
> To: "Edward Peloke" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> 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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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:[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
>
> --
> 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

Reply via email to