RE: [PHP] using ahref tag in $msg variable
| From: | Kevin Stone | Date: | Mon, 11 Mar 2002 20:25:02 +0000 |
| Subject: | RE: [PHP] using ahref tag in $msg variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88079@lists.php.net to get a copy of this message | ||
If you want to use HTML tags in your email you can add to
$mailheaders .= "Content-type: text/html\n";
-Kevin
-----Original Message-----
From: Jason Wong [mailto:php-general@gremlins.com.hk]
Sent: Monday, March 11, 2002 12:46 PM
To: php-general@lists.php.net
Subject: Re: [PHP] using ahref tag in $msg variable
On Tuesday 12 March 2002 02:12, Claudia Smith wrote:
> I would like to know how to code my mail msg to accept an <a href> tag
>
> my current code is:
>
> $msg = "$username wants you to check out \"The AdVentures of AdWoman:
> AdWoman's Dilemma.\"\n\n";
> $msg .= "Play for a chance to win a Caribbean cruise presented by
> Carnival Cruise Line and <a
>
> href='http://www.contus.com'>Contus.com</a>.\n\n";
> $msg .= "This adgame is presented by the American Advertising
> Federation, which cordially invites you to attend the <a
> href='http://www.aaf.org'> AdVentures
> Conference</a>, the AAF's
National
> Convention in Miami, Florida June 5-8.
> $msg .= "This adgame was created by
AdGames.biz.\n\n";
> $mailheaders = "From: webmaster@adgames.biz\n";
> $mailheaders .= "Reply-To: webmaster@adgames.biz\n\n";
> mail("$friendemail1", "$username Referred you an Adgame!", $msg,
> $mailheaders);
>
> My auto response email is printed with the < a href=....code instead
of
> creating the hyperlink for me.
>
> Any suggestions on how to create this type of hyper link in a non html
> email?
In a non-html email, ie a plain-text email, any text such as
www.domain.com
would automatically be interpreted by modern mail-clients as a URL link.
In
other words there is no need (in fact it's not possible within
plain-text) to
specifically specify that a link is a link.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
No spitting on the Bus!
Thank you, The Mgt.
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php