Hi does anybody know how i can send a link in a php email, i have the email sending but i cant seem to get it to send the link, any help would be great.
Here is my code:
<?php
session_start();
ini_set( 'display_errors', '1' );
error_reporting ( 2047 );
$fromemail = "postmaster@localhost";
$scripturl = "http://localhost/xampp/mailsend.php";
$host="localhost"; // Host name
$username="root"; // Mysql username
$password="root"; // Mysql password
$db_name="test"; // Database name
$tbl_name="reff"; // Table name
// Connect to server and select databse.
mysql_connect("$host", "root", "root")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
// image and titl and reg sent from form
$mymake=$_POST['mymake'];
$mymake=$_POST['mymodel'];
$myreg=$_POST['myreg'];
$myimage=$_POST['myimage'];
mysql_select_db("test");
$result = mysql_query("INSERT INTO reff (make, model, registration, imgdata)
VALUES ('$_POST[mymake]', '$_POST[mymodel]', '$_POST[myreg]', '$_POST[myimage]')");
$to = "mjgdunne@hotmail.com";
$subject = 'You have being assigned a new case';
$message = 'Go to: http://localhost/rental.html' . 'You have being assigned a new case';
$headers = 'From: postmaster@localhost' . "\r\n" .
'Reply-To: postmaster@localhost' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
header("location:case_assigned.php");
exit();
?>