Hi there, just managed to get a email activation working using php mailer but for some reason it only prints out the url as text and not a link. I have since removed the <a> around the url to make it easier for suggestions.
I reckon this is a fairly simple problem but its been holding me back for some time.
require_once('lib/class.phpgmailer.php');
$mail = new PHPGMailer();
$mail->IsSMTP(); // send via SMTP
$mail->Host = 'ssl://smtp.gmail.com'; // SMTP servers
$mail->Username = '***@gmail.com';
$mail->Password = '*****';
$mail->From = '****@gmail.com';
$mail->FromName = 'test';
$mail->Subject = 'test Registration';
$mail->AddAddress($email);
$mail->Body = "Your account has been successfully created with the following details:\n\nUsername: $username\nPassword: $password\nEmail: $email\nForename: $forename\nSurname: $surname\nLocation: $location\n\nPlease click on the link to activate your account.\n";
$mail->Body .= "http://localhost/Ad'll%20Do/activate.php?username=$username&&do=$active_code";
if (!$mail->Send()) {
echo "<span class='highlight'>Email was not sent.</sapn></p>";
echo "<p>Mailer Error: $mail->ErrorInfo</p></div>";
} else {
echo "<span class='highlight'>Email has been sent.</span></p></div>";
}