...

View Full Version : How to print anchor text, href in sending mail?



chleng
01-03-2006, 04:54 AM
Hi,

php code,


<?

$to = 'aidan@yahoo.com'; //just an example to prevent spamming
$subject = 'Birthday Reminders for August';
$message = "<A HREF=\"www.cnn.com\">CNN</A>";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Additional headers
$headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";
$headers .= 'From: Birthday Reminder <birthday@example.com>' . "\r\n";
$headers .= 'Cc: birthdayarchive@example.com' . "\r\n";
$headers .= 'Bcc: birthdaycheck@example.com' . "\r\n";


?>


The problem with the above is It does print out CNN but when I tried to link cnn.com from my email, it fails to connect to www.cnn.com

thanks!

zombbb
01-03-2006, 06:58 AM
You can try to convert mail to html with it's tags. Then try again.

Regards
www.takedom.com



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum