I'm trying to email some stuff that is retrieved from a form. Seems fairly simple and works fine... until I add in a link.
In the form if I add
<a href="http://google.com">click me</a>
in the email it shows up as blue text but it isn't underlined and it doesn't link.
In my php I have the following:
#convert line breaks into code line breaks
$final_content = str_replace("\r\n", "\r\n<br>\r\n", $_REQUEST["main"]);
$to = $row['email'];
$subject = "email testing";
$message_final = "<html><body>Hi " . $row['name'] . ", <br><br>This is an email with the content below from the forms.<br><br><i><font size='3'><b>" . $_POST['heading'] . "</b></font><br><br>" . $final_content . "</i></body></html>";
$mailheader = "From: mysite.com\r\n";
$mailheader .= "Reply-To: firstname.lastname@example.org\r\n";
$mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n";
mail($to, $subject, $message_final, $mailheader);
Any ideas as to why and or fixes?