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:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 12:46 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]\n;
$mailheaders .= Reply-To: [EMAIL PROTECTED]\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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php