Преглед изворни кода

Merge pull request #2051 from Faymir/patch-1

Set default charset to utf-8 in send_email function
Jaap Marcus пре 4 година
родитељ
комит
09d760e619
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      web/inc/main.php

+ 1 - 0
web/inc/main.php

@@ -317,6 +317,7 @@ function send_email($to, $subject, $mailtext, $from, $from_name) {
     $mail->AddAddress($to, "Hestia Control Panel User");
     $mail->SetFrom($from, $from_name);
 
+    $mail->CharSet = "utf-8";
     $mail->Subject = $subject;
     $content = $mailtext;
     $content = nl2br($content);