2 writes to connection
System (2)
net\System\Net\mail\SmtpTransport.cs (2)
201
connection
= new SmtpConnection(this, client, credentials, authenticationModules);
224
connection
= new SmtpConnection(this, client, credentials, authenticationModules);
27 references to connection
System (27)
net\System\Net\mail\SmtpTransport.cs (27)
123
return
connection
!= null &&
connection
.IsConnected;
172
get { return
connection
!= null &&
connection
.ServerSupportsEai; }
202
connection
.Timeout = timeout;
203
if(Logging.On)Logging.Associate(Logging.Web, this,
connection
);
207
connection
.EnableSsl = true;
208
connection
.ClientCertificates = ClientCertificates;
210
connection
.GetConnection(servicePoint);
225
connection
.Timeout = timeout;
226
if(Logging.On)Logging.Associate(Logging.Web, this,
connection
);
229
connection
.EnableSsl = true;
230
connection
.ClientCertificates = ClientCertificates;
233
result =
connection
.BeginGetConnection(servicePoint, outerResult, callback, state);
247
connection
.EndGetConnection(result);
271
SendMailAsyncResult result = new SendMailAsyncResult(
connection
, sender, recipients,
272
allowUnicode,
connection
.DSNEnabled ? deliveryNotify : null,
280
if(
connection
!= null){
281
connection
.ReleaseConnection();
286
if(
connection
!= null){
287
connection
.Abort();
317
MailCommand.Send(
connection
, SmtpCommands.Mail, sender, allowUnicode);
324
string to = smtpAddress + (
connection
.DSNEnabled ? deliveryNotify : String.Empty);
325
if (!RecipientCommand.Send(
connection
, to, out response)) {
327
new SmtpFailedRecipientException(
connection
.Reader.StatusCode, smtpAddress, response));
348
DataCommand.Send(
connection
);
349
return new MailWriter(
connection
.GetClosableStream());