View Full Version : PHP email link not showing as a clickable link?!

08-31-2011, 11:46 PM
hi, in my php html email, when a link is sent and received in Windows Mail, it comes out as not being a clickable link

looks like this (with no gaps):

www . google . co . uk

should be this:

www.google.co.uk (http://www.google.co.uk)

this is fine in Google Mail and Outlook?!

Please help...
here is my code

mysql_connect("000", "000", "000");
$EmailTitle = htmlentities(mysql_real_escape_string($_POST['EmailTitle']));
$EmailBody1 = htmlentities($_POST['EmailBody']);
$id = mysql_real_escape_string($_POST['id']);

$order = array("\r\n", "\n", "\r");
$replace = '<br />';

// Processes \r\n's first so they aren't converted twice.
$EmailBody = str_replace($order, $replace, $EmailBody1);

$query5 = mysql_query("SELECT * FROM aarbookts_booking_bookings WHERE id = '$id'");
$row5 = mysql_fetch_array($query5);

$customer_name = $row5['customer_name'];

$to = $row5['customer_email'];
$subject = $EmailTitle;
echo $to;

$message = <<<EOF
//end of message
$headers = "From: info@affordableappliancerepairs.co.uk\r\n";
$headers .= "Content-type: text/html\r\n";

//options to send to cc+bcc
//$headers .= "Cc: maa@p-i-s.cXom";
//$headers .= "Bcc: email@maaking.cXom";

// now lets send the email.
mail($to, $EmailTitle, $message, $headers);
$msg = "Mass email sent";
header("Location: view-booking.php?msg=$msg&id=$id");


09-01-2011, 01:25 AM
this is now sorted, it was a problem with Windows mail!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum