Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-03-2006, 04:54 AM   PM User | #1
chleng
New Coder

 
Join Date: Jun 2005
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
chleng is an unknown quantity at this point
How to print anchor text, href in sending mail?

Hi,

php code,
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: [email]birthdayarchive@example.com[/email]' "\r\n";
$headers .= 'Bcc: [email]birthdaycheck@example.com[/email]' "\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!
chleng is offline   Reply With Quote
Old 01-03-2006, 06:58 AM   PM User | #2
zombbb
New to the CF scene

 
Join Date: Jan 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
zombbb is an unknown quantity at this point
hell

You can try to convert mail to html with it's tags. Then try again.

Regards
www.takedom.com
zombbb is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:54 AM.


Advertisement
Log in to turn off these ads.