I'm currently trying to get PHPMailer to send an E-Mail with a verification Link. To get this done I need to use the html A Tag so I set IsHTML true but somehow the Mails won't go out then anymore.
Here's my current code.
//Send Welcome E-Mail
$mail = new PHPMailer();
$mail->IsSMTP(); // set mailer to use SMTP
$mail->Host = "smtp.yaay.de"; // specify main and backup server
$mail->Port = "465";
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->SMTPSecure = 'ssl';
$mail->Username = "admin@whatever.net"; // SMTP username
$mail->Password = "pass"; // SMTP password
$mail->From = "admin@whatever.net";
$mail->FromName = "Whatever";
$mail->AddAddress($receiver, $receivername); // name is optional
$mail->Subject = "Welcome, $receivername!";
$mail->Body = "To activate your Account, please visit the following link: <a href = '?test'>test</a>";
$mail->IsHTML(true);
$mail->Send();
if(!$mail->Send())
{
die($mail->ErrorInfo);
}
No errror is displayed, I have no idea how to find out where the problem is. :( I just know that any html code or IsHTML(true) is enough to kill the E-Mail sending process. :/