Problem with HTML tags using UTF-8 sent by PHPMailer [closed]

0

I am using the UTF-8 charset in this way:

<meta http-equiv="Content-Type" content="text/html"; charset="UTF-8">

Although with this my HTML looks good either by opening it in different browsers or in gmail, the same thing does not happen in managers such as outlook or the mail manager of windows 10, where it does not recognize the accents or special characters, despite the fact that I have read on the internet that to solve this problem is UTF-8 the charset that is usually used. Should I include some other charset?

    
asked by user91042 22.06.2018 в 09:35
source

1 answer

2

The problem was that I was using the PHPMailer library to send the HTML by mail and I was not specifying that the mail as such had "UTF-8". Add this line in the shipping php solved it:

$mail->CharSet = 'UTF-8';
    
answered by 22.06.2018 / 13:24
source