When I get this email there is two lines between everything why??
$result = mysql_query ("SELECT * From members where username = '".$_POST['username']."';");
$row = mysql_fetch_array($result);
$id = $row["id"];
$email2 = $_POST['email'];
$link = "activate.php?id=$id";
$headers .= "From: Rugby League in New Zealand Membership <test@paradise.net.nz>\n";
$headers .= "X-Sender: <rleague@rleague.com>\n";
$headers .= "X-Mailer: PHP\n"; // mailer
$headers .= "Return-Path: <rleague@rleague.com>\n"; // Return path for errors
$subject = "Registration to [url]www.rugbyleaguenz.com[/url]";
$message = "Thank you $_POST[username] for joining Rugby League in New Zealand
You are one step away from viewing the members area.
All you have to do is activate you account with the url below.
[url]http://www.website.com/members/[/url]$link
Your login details are as follows.
Username: $_POST[username]
Password: $_POST[password]
Thank you again
Site Admin/Webmaster at [url]http://www.website.com[/url]
Please do not reply to this message or it will bounce";
mail($email2,$subject,$message,$headers);
}
?>