System.Net.Mail.SmtpClient: Property Members

The properties of System.Net.Mail.SmtpClient are listed below. For a list of all members, see the SmtpClient Members list.

See Also: Inherited members from System.Object

Public Properties

[read-only]
ClientCertificatesSystem.Security.Cryptography.X509Certificates.X509CertificateCollection.

Specify which certificates should be used to establish the Secure Sockets Layer (SSL) connection.

CredentialsSystem.Net.ICredentialsByHost.

Gets or sets the credentials used to authenticate the sender.

DeliveryMethodSmtpDeliveryMethod.

Specifies how outgoing email messages will be handled.

EnableSslbool.

Specify whether the System.Net.Mail.SmtpClient uses Secure Sockets Layer (SSL) to encrypt the connection.

Hoststring.

Gets or sets the name or IP address of the host used for SMTP transactions.

PickupDirectoryLocationstring.

Gets or sets the folder where applications save mail messages to be processed by the local SMTP server.

Portint.

Gets or sets the port used for SMTP transactions.

[read-only]
ServicePointSystem.Net.ServicePoint.

Gets the network connection used to transmit the e-mail message.

TargetNamestring.

Gets or sets the Service Provider Name (SPN) to use for authentication when using extended protection.

Timeoutint.

Gets or sets a value that specifies the amount of time after which a synchronous erload:System.Net.Mail.SmtpClient.Send call times out.

UseDefaultCredentialsbool.

Gets or sets a bool value that controls whether the System.Net.CredentialCache.DefaultCredentials are sent with requests.