0
I am using Phpmailer to send emails, but in the body of the email there is a field (address) that is coming as a link (for maps) to the recipient.
I’ve used strip_tags() but it hasn’t solved. Locally it works, but when testo online it doesn’t work.
Code:
$end = $_POST['endereco'];
$enderecoFormatado= strip_tags($end, '<a>');
$corpo = "<h1><table>
<tr>
<td>Endereco: </td>
<td>
$enderecoFormatado
</td>
</tr>
</table>";
$corpo = utf8_decode($corpo);
$mail->msgHTML($corpo);
It may be that the email client detects Urls and turns them into links.
– Sam
And there’s no way I can narrow it down? (Fiddling with my code of course) Somehow only getting the text to him?
– Guilherme Luis