sending email, links not links

  • Thread starter Thread starter Anonymous
  • Start date Start date
A

Anonymous

Guest
hello,

So I am sending the member an email with confirmation of the info they entered.

In the body of the email they receive, I have a login url that I give to them so they can click it and login. for some reason, the link is not clickable ?

Here's some code:

Code:
<?php

	$subject        = "test email";
	$message        = "<P>http://www.riverendconsulting.ca";
	$site_name      = "some site";
	$admin_email    = "rob@riverendconsulting.ca";
	$required_name  = "bill";
	$required_email = "rob@gobid.ca";
	
	$headers  = "";
	$headers .= "MIME-Version: 1.0\r\n"; 
	$headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
	$headers .= "From: " . $site_name . " <" . $admin_email . ">\r\n"; 
	$headers .= "To: " . $required_name . " <" . $required_email . ">\r\n"; 	
	$headers .= "Reply-To: " . $site_name . " <" . $admin_email . ">\r\n"; 
		
	mail("", $subject, $message, $headers);
	
	echo "
	<br>subject: $subject
	<br>sent to: <a href=\"mailto:$required_email\">$required_name</a>
	<br>from: <a href=\"mailto:$admin_email\">$site_name</a>
	<br>reply to: <a href=\"mailto:$admin_email\">$site_name</a>	
	<br>message: $message	
	";
	
?>

Help ?

Thanks
Rob
 
sorry ppl, i just answered my own question, I see I forgot to think that I am using HTML tags already in the message body like bold etc and I must href the links to make them clickable.

thanks
Rob
 
Back
Top