In the following code I used the following line to add the encoding part:
$mail->exec("set names utf8");
However, the email was not sent correctly.
I have tried the following:
$to = $_POST['email'];
$subject = "Konfirmo regjistrimin ZEROPULSE Team";
$body = "<p>Përshendetje $emri, faleminderit per anetaresimin tuaj ne webfaqen <a href='http://www.flamurbeqiraj.com'>www.flamurbeqiraj.com</a>!</p>
<p>Per te aktivizuar llogarine tuaj, ju lutem <a href='".DIR."administrator/aktivizo.php?x=$id&y=$activasion'>klikoni ketu</a>.</p>
<p>T'gjitha te mirat, ZP Team.</p>";
$mail = new Mail();
$mail->setFrom(SITEEMAIL);
$mail->addAddress($to);
$mail->subject($subject);
$mail->exec("set names utf8");
$mail->body($body);
$mail->send();
How can I change the encoding UTF-8 part?