我正在通过Codeigniter的电子邮件库发送电子邮件。 问题是,当电子邮件到达时,某些字符会更改为“ =“
我尝试切换字符集类型和邮件类型,但仍然存在相同的问题。 我不知道还能做什么。
$config = array(
'protocol' => 'smtp',
'mailtype' => 'html',
'smtp_host' => '******',
'smtp_port' => '25',
'charset' => 'UTF-8',
'newline' => "\r\n",
'auth' => true,
'mailpath' => '/usr/sbin/sendmail',
'validate' => 'FALSE',
);
$rows = $this->Partner_model->getPartnerData();
foreach ($rows as $row) {
$key = mt_rand() ;
$hash = sha1($key);
$data["values"] = $this->Service_model->getServiceTotalByID($row["short"]);
array_push($data["values"], $hash);
$mesg = $this->load->view('email',$data,true);
var_dump($mesg);
$this->email->clear();
$this->email->set_newline("\r\n");
$this->email->initialize($config);
$this->email->set_mailtype("html");
$this->email->from("******", "*****");
$this->email->to($row["email"]);
$this->email->subject("********");
$this->email->message($mesg);
我希望输出类似于“ a respetiva”,但实际为“ a = espetiva”。