I am developing a website that should send e-mail with different types of notifications to users. For sending them I am using the class PHPMailer. The e-mail is sent from the server, with that I have no problem, but when I open the mail in the corresponding inbox, it comes out with many strange characters due to accents and so on.
I get the text like this:
"Remember that, for safety, you should change this password for a new one when you access the platform in your account settings (you will find it in the navigation menu)."
I know it must be something of the coding that I'm not doing correctly, I've tried the htmlentities function, applying it to the body of the e-mail, but it has not worked for me.
Any ideas? Thank you very much in advance.