我正在使用 CodeIgniter 电子邮件库通过我们的 Exchange 服务器发送电子邮件。我得到的问题是电子邮件的内容搞砸了。
有些单词被等号“=”替换,我尝试了 2 个不同的 Exchange 服务器(它们位于不同的位置,并且没有任何关系),但我仍然遇到同样的问题。如果我使用任何其他服务器作为 SMTP 服务器来发送电子邮件,一切正常,内容保持不变。
发送前的内容:
Dear Customer
Please find attached a comprehensive explanation of how to get our brochure of Angola. This has been sent to you at the request of Alex.
The information has been taken from www.example.co.uk "Company name" is one of the leading tile and marble companies in the UK.
通过 Microsoft Exchange 发送后的内容:
Dear Customer
Please find attached a comprehensive explanation of how to get our brochure of A=gola. This has been sent to you at the request of Alex.
The information has been taken from www.example.co.uk "Company name" is one of the leadi=g tile and marble companies in the UK.
正如您所看到的,出于某种原因,一些“n”字符被替换为等号“=”(示例:Angola > A=gola)
我的邮箱配置:
$this->load->library('email');
$config['charset'] = 'utf-8';
$config['mailtype'] = 'html';
// SMTP
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'exchange.example.com'; //ssl://
$config['smtp_user'] = 'email@example.com';
$config['smtp_pass'] = 'password';
$config['smtp_port'] = 25;
$this->email->set_newline( "\r\n" );
$this->email->initialize( $config );
$this->email->clear();
......
$this->email->from( $frome, $fromn );
$this->email->to( $email );
$this->email->subject( $subject );
$this->email->message( $send_message );
$this->email->send();
有谁知道为什么微软交易所会这样?还是我应该使用某种设置?