#5 Почта в игре.

This commit is contained in:
2022-06-10 23:13:43 +03:00
parent bd8e28bed9
commit 44d42ea8af
8 changed files with 4943 additions and 944 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ function mails($to, $message, $subject = '
{
require '_incl_data/class/mail/class.phpmailer.php';
$message = mb_convert_encoding($message, 'UTF-8', 'CP1251');
$subject = mb_convert_encoding($subject, 'UTF-8', 'CP1251');
$mail = new PHPMailer;
$mail->IsSMTP(); // Set mailer to use SMTP
@@ -17,7 +18,7 @@ function mails($to, $message, $subject = '
$mail->CharSet = 'UTF-8';
$mail->From = 'newcombats@yahoo.com';
$mail->FromName = 'Áîéöîâñêèé Êëóá';
$mail->FromName = mb_convert_encoding('Áîéöîâñêèé Êëóá', 'UTF-8', 'CP1251');
$mail->AddAddress($to); // Add a recipient
$mail->IsHTML(true); // Set email format to HTML