I'm sending email through PHP mailer for account verification, and it's sending and working. But there is an error in $mail->body
part, because I'm passing $name
variable to the <a>
tag, but when I click on my received mail, it's still $name
. It should be the posted name of my form but it's just displaying the $name
text and not getting the value of $name
. I think the problem is in this line (a syntax problem).
<?php
$name=$_POST['name'];
$mail->isHTML(true);
$mail->Body = '<b>Hello,this is just account activation process please click</b><a href="http://localhost/email_verification/register.php?nm=$name">Here</a><b> and you will be good to go.</b>';
?>