Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SendEHello()

bool System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.SendEHello ( )
inlineprivate

Definition at line 190 of file SmtpConnection.cs.

191 {
192 IAsyncResult asyncResult = EHelloCommand.BeginSend(_connection, _connection._client._clientDomain, s_sendEHelloCallback, this);
193 if (asyncResult.CompletedSynchronously)
194 {
195 _connection._extensions = EHelloCommand.EndSend(asyncResult);
198 {
199 Authenticate();
200 return true;
201 }
203 {
205 {
206 throw new SmtpException(System.SR.MailServerDoesNotSupportStartTls);
207 }
208 SendStartTls();
209 }
210 else
211 {
212 Authenticate();
213 }
214 return true;
215 }
216 return false;
217 }
void ParseExtensions(string[] extensions)
static string MailServerDoesNotSupportStartTls
Definition SR.cs:168
Definition SR.cs:7

References System.Net.Mail.SmtpConnection._client, System.Net.Mail.SmtpClient._clientDomain, System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult._connection, System.Net.Mail.SmtpConnection._extensions, System.Net.Mail.SmtpConnection._networkStream, System.Net.Mail.SmtpConnection._serverSupportsStartTls, System.asyncResult, System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.Authenticate(), System.Net.Mail.EHelloCommand.BeginSend(), System.Net.Mail.SmtpConnection.EnableSsl, System.Net.Mail.EHelloCommand.EndSend(), System.SR.MailServerDoesNotSupportStartTls, System.Net.Mail.SmtpConnection.ParseExtensions(), System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.s_sendEHelloCallback, and System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.SendStartTls().

Referenced by System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.Handshake(), System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.HandshakeCallback(), System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.TlsStreamAuthenticate(), and System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.TlsStreamAuthenticateCallback().