C# Class System.Net.Mail.SmtpClient

Inheritance: IDisposable
Datei anzeigen Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
Abort void
CheckHostAndPort void
Complete void
ConnectCallback void
ContextSafeCompleteCallback void
GetConnection void
GetFileMailWriter System.Net.Mail.MailWriter
HandleCompletion void
Initialize void
IsSystemNetworkCredentialInCache bool
IsUnicodeSupported bool
SendAsync void
SendAsync void
SendCompletedWaitCallback void
SendMailAsync System.Threading.Tasks.Task
SendMailAsync System.Threading.Tasks.Task
SendMailCallback void
SendMessageCallback void
TimeOutCallback void
ValidateUnicodeRequirement void

Public Methods

Method Description
Dispose ( ) : void
Send ( MailMessage message ) : void
Send ( string from, string recipients, string subject, string body ) : void
SendAsyncCancel ( ) : void
SmtpClient ( ) : System.ComponentModel
SmtpClient ( string host ) : System.ComponentModel
SmtpClient ( string host, int port ) : System.ComponentModel

Protected Methods

Method Description
Dispose ( bool disposing ) : void
OnSendCompleted ( AsyncCompletedEventArgs e ) : void

Private Methods

Method Description
Abort ( ) : void
CheckHostAndPort ( ) : void
Complete ( Exception exception, IAsyncResult result ) : void
ConnectCallback ( IAsyncResult result ) : void
ContextSafeCompleteCallback ( IAsyncResult ar ) : void
GetConnection ( ) : void
GetFileMailWriter ( string pickupDirectory ) : System.Net.Mail.MailWriter
HandleCompletion ( TaskCompletionSource tcs, AsyncCompletedEventArgs e, SendCompletedEventHandler handler ) : void
Initialize ( ) : void
IsSystemNetworkCredentialInCache ( CredentialCache cache ) : bool
IsUnicodeSupported ( ) : bool
SendAsync ( MailMessage message, object userToken ) : void
SendAsync ( string from, string recipients, string subject, string body, object userToken ) : void
SendCompletedWaitCallback ( object operationState ) : void
SendMailAsync ( MailMessage message ) : System.Threading.Tasks.Task
SendMailAsync ( string from, string recipients, string subject, string body ) : System.Threading.Tasks.Task
SendMailCallback ( IAsyncResult result ) : void
SendMessageCallback ( IAsyncResult result ) : void
TimeOutCallback ( object state ) : void
ValidateUnicodeRequirement ( MailMessage message, MailAddressCollection recipients, bool allowUnicode ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

OnSendCompleted() protected method

protected OnSendCompleted ( AsyncCompletedEventArgs e ) : void
e System.ComponentModel.AsyncCompletedEventArgs
return void

Send() public method

public Send ( MailMessage message ) : void
message MailMessage
return void

Send() public method

public Send ( string from, string recipients, string subject, string body ) : void
from string
recipients string
subject string
body string
return void

SendAsyncCancel() public method

public SendAsyncCancel ( ) : void
return void

SmtpClient() public method

public SmtpClient ( ) : System.ComponentModel
return System.ComponentModel

SmtpClient() public method

public SmtpClient ( string host ) : System.ComponentModel
host string
return System.ComponentModel

SmtpClient() public method

public SmtpClient ( string host, int port ) : System.ComponentModel
host string
port int
return System.ComponentModel