Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros
System.Net.Mail.SmtpClient Class Reference

Public Member Functions

 SmtpClient ()
 
 SmtpClient (string? host)
 
 SmtpClient (string? host, int port)
 
void Send (string from, string recipients, string? subject, string? body)
 
void Send (MailMessage message)
 
void SendAsync (string from, string recipients, string? subject, string? body, object? userToken)
 
void SendAsync (MailMessage message, object? userToken)
 
void SendAsyncCancel ()
 
Task SendMailAsync (string from, string recipients, string? subject, string? body)
 
Task SendMailAsync (MailMessage message)
 
Task SendMailAsync (string from, string recipients, string? subject, string? body, CancellationToken cancellationToken)
 
Task SendMailAsync (MailMessage message, CancellationToken cancellationToken)
 
void Dispose ()
 

Protected Member Functions

void OnSendCompleted (AsyncCompletedEventArgs e)
 
virtual void Dispose (bool disposing)
 

Package Functions

MailWriter GetFileMailWriter (string pickupDirectory)
 

Package Attributes

string _clientDomain
 

Properties

stringHost [get, set]
 
int Port [get, set]
 
bool UseDefaultCredentials [get, set]
 
ICredentialsByHostCredentials [get, set]
 
int Timeout [get, set]
 
ServicePoint ServicePoint [get]
 
SmtpDeliveryMethod DeliveryMethod [get, set]
 
SmtpDeliveryFormat DeliveryFormat [get, set]
 
stringPickupDirectoryLocation [get, set]
 
bool EnableSsl [get, set]
 
X509CertificateCollection ClientCertificates [get]
 
stringTargetName [get, set]
 
bool ServerSupportsEai [get]
 
bool InCall [get, set]
 

Events

SendCompletedEventHandlerSendCompleted
 

Private Member Functions

void Initialize ()
 
void UpdateTransportCredentials ()
 
bool IsUnicodeSupported ()
 
void SendCompletedWaitCallback (object operationState)
 
bool IsSystemNetworkCredentialInCache (CredentialCache cache)
 
void CheckHostAndPort ()
 
void TimeOutCallback (object state)
 
void Complete (Exception exception, IAsyncResult result)
 
void SendMessageCallback (IAsyncResult result)
 
void SendMailCallback (IAsyncResult result)
 
void ConnectCallback (IAsyncResult result)
 
void ValidateUnicodeRequirement (MailMessage message, MailAddressCollection recipients, bool allowUnicode)
 
void GetConnection ()
 
void Abort ()
 

Static Private Member Functions

static void ContextSafeCompleteCallback (IAsyncResult ar)
 

Private Attributes

string _host
 
int _port
 
int _timeout = 100000
 
bool _inCall
 
bool _cancelled
 
bool _timedOut
 
string _targetName
 
SmtpDeliveryMethod _deliveryMethod
 
SmtpDeliveryFormat _deliveryFormat
 
string _pickupDirectoryLocation
 
SmtpTransport _transport
 
MailMessage _message
 
MailWriter _writer
 
MailAddressCollection _recipients
 
SendOrPostCallback _onSendCompletedDelegate
 
Timer _timer
 
System.Net.ContextAwareResult _operationCompletedResult
 
AsyncOperation _asyncOp
 
bool _disposed
 
ServicePoint _servicePoint
 
SmtpFailedRecipientException _failedRecipientException
 
bool _useDefaultCredentials
 
ICredentialsByHost _customCredentials
 

Static Private Attributes

static readonly AsyncCallback s_contextSafeCompleteCallback = ContextSafeCompleteCallback
 

Detailed Description

Definition at line 18 of file SmtpClient.cs.


The documentation for this class was generated from the following file: