我正在使用多语种网站,我们已经以首选语言向用户发送电子邮件。
电子邮件主题可见,但在正文中它将显示不可读的字符:
PHPMailer代码:
$body = file_get_contents('mailtemplate/base_template.html');
$body = str_replace('{sn}', $senderUser['user_firstname'], $body);
$body = str_replace('{eb}', $msg, $body);
$mail = new sendemail($this->config);
$mail->SendEmail($this->logger, $this->config, $recUser['user_name'], 'Subject : ' . $senderUser['user_firstname'] . ' sent a message to you', $body, ''))