I am trying to build a verification mail for my website, but I can't seem to get the PHPmailer to include html and php. I can get the verification mail send to the correct mail address, with the correct body, the code for that is this:
$mail->Body = 'Please verificate your account by clicking on the following link: http:localhost/confirm.php?passkey=' . $confirm_code;
Now I am trying to get the link in the mail to be an actual link, I tried this (see code below) but that didn't work
$mail->Body = 'Please verificate your account by clicking on the following link: <a href=\"http:localhost/confirm.php?passkey= . $confirm_code\">http:localhost/confirm.php?passkey=' . $confirm_code . '</a>';
I have set the PHPmailer to send emails with html:
$mail->Debugoutput = 'html';
Could anyone tell me what the problem is here?