我正在使用 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 protected] /cdn-cgi/l/email-protection';
$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();
有谁知道为什么微软交易所会这样?或者我应该使用某种设置?