Re: using ahref tag in $msg variable
| From: | Jason Wong | Date: | Mon, 11 Mar 2002 19:46:00 +0000 |
| Subject: | Re: using ahref tag in $msg variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88072@lists.php.net to get a copy of this message | ||
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.
*/