oI created an API for sending mail in PHP. Below is my code
$content = $content."<br/><b>Address : </b>".$fromUser["address"];
$content = $content."<br/><b>City : </b>".$fromUser["city"];
$to = 'abc@gmail.com';
include('PhpMailer/class.phpmailer.php');
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth = TRUE;
$mail->SMTPSecure = "ssl";
$mail->Host = "smtp.gmail.com";
$mail->Port = 465;
$mail->Username = "####";
$mail->Password = "####";
$mail->setFrom("support@abc.io","abc");
$mail->isHTML(true);
$mail->AddAddress($to);
$mail->Subject = 'Test';
$mail->MsgHTML($content);
if ($mail->Send()) {
return 1;
} else {
return 0;
}
I get an email, but the keyword "City" in the content shows a hyperlink. I want to remove this.

[Note: if I write 'City1' instead of 'City', the link is deleted]
thanks
source
share