19

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」文字の一部が等号「=」に置き換えられました (例: アンゴラ > A=ゴラ)

私のメール設定:

$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();

Microsoft 取引所がこのように動作する理由を知っている人はいますか? または、使用する必要がある設定がありますか?

4

2 に答える 2

44

これは奇妙なことです。特に、すべてのn音訳が行われているわけではなく、特定の位置にあるわけでもないためです。

$this->email->set_crlf( "\r\n" );同様に電話してみてください。Exchangeでメッセージの詳細を調べてContent-Type、Charset / Encodingを調べます。ここに未加工のものを投稿して、調べられるようにします。

これはMicrosoftナレッジベースで見つかりました:

Microsoft Exchangeは、拡張文字セットを使用します。MicrosoftExchangeのデフォルトのMIME文字セットはISO8859-1です。一部のゲートウェイは、この文字セットが改行に対してソフトリターンを発行する方法をサポートしていません。これが発生すると、各回線は、ゲートウェイの改行サポートが終了する改行を示す等号で終了します。

于 2012-10-25T09:45:38.230 に答える