Re: 【TKMP】ESMTPに対応していないサーバーについて ( No.1 ) |
- 日時: 2011/05/31 13:11
- 名前: Toki◆pRU.c9X.EOI
- RFC 2821では現在EHLOコマンドは必須となっています。
このためこれに習って、TKMPもEHLOコマンドでのSMTPセッション開始を前提としています。
EHLOコマンドでの接続がどうしても必要な場合は、 ログオンクラスを作成することで可能になると思いますが、自動判別は出来ません。
HELOでのログオンクラス
internal class SmtpLogon_HELO : ISmtpLogon { string ISmtpLogon.Greeting(string Receive ) { return "HELO " + System.Net.Dns.GetHostName(); } bool ISmtpLogon.Connection(string Receive , out string Send , out string LogMessage) { Send = null; LogMessage = null; return false; }
bool ISmtpLogon.Logon { get { return true; } }
void ISmtpLogon.Initialize() { }
}
|
|