TCnSmtpClient Class
Allows applications to send email by using the Simple Mail Transfer Protocol (SMTP).
type TCnSmtpClient = class(TClrBaseComponent) end;
The TCnSmtpClient type exposes the following members.
Name | Description | |
---|---|---|
Create(TComponent) | Creates and initializes a TCnSmtpClient instance. (Overrides TClrBaseComponent.Create(TComponent).) | |
Destroy | Frees the resources allocated with a TCnSmtpClient instance. (Overrides TClrBaseComponent.Destroy.) |
Name | Description | |
---|---|---|
ClientCertificates | Specify which certificates should be used to establish the Secure Sockets Layer (SSL) connection. | |
Credentials | Gets or sets the credentials used to authenticate the sender. | |
DefaultClrObject | Get the common language runtime object interface for this component. (Inherited from TClrBaseComponent.) | |
DeliveryFormat | Gets or sets the delivery format used by SmtpClient to send email. | |
DeliveryMethod | Specifies how outgoing email messages will be handled. | |
Domain | The domain associated with these credentials. | |
EnableSsl | Specify whether the SmtpClient uses Secure Sockets Layer (SSL) to encrypt the connection. | |
Host | Gets or sets the name or IP address of the host used for SMTP transactions. | |
Password | The password for the user name associated with the credentials. | |
PickupDirectoryLocation | Gets or sets the folder where applications save mail messages to be processed by the local SMTP server. | |
Port | Gets or sets the port used for SMTP transactions. | |
ServicePoint | Gets the network connection used to transmit the email message. | |
TargetName | Gets or sets the Service Provider Name (SPN) to use for authentication when using extended protection. | |
Timeout | Gets or sets a value that specifies the amount of time after which a synchronous Send call times out. | |
UseDefaultCredentials | Gets or sets a Boolean value that controls whether the DefaultCredentials are sent with requests. | |
UserName | The user name associated with the credentials. |
Name | Description | |
---|---|---|
Dispose | Releases the resources used by the Component. (Inherited from TClrBaseComponent.) | |
DoGetDefaultClrObject | Represents method | |
DoGetDotNetBaseComponent | Represents method | |
GetClrObject | Represents method | |
RegisterEventCallBack(ClrWString,Pointer) | Add an event to the instance using the specified event name and function pointer which is the event handler. The RegisterEventCallBack method does not directly add the event handler to the event. A hooking mechanism is used such that if the event is fired, the hook event is also fired which in turn calls the function pointer. (Inherited from TClrBaseComponent.) | |
RegisterEventSource | Register the Delphi object which will raise the .Net event handler. (Inherited from TClrBaseComponent.) | |
Send(String,String,String,String) | Overloaded. Sends the specified email message to an SMTP server for delivery. The message sender, recipients, subject, and message body are specified using String objects. | |
Send(_MailMessage) | Overloaded. Sends the specified message to an SMTP server for delivery. | |
SendAsync(String,String,String,String,Olevariant) | Overloaded. Sends an email message to an SMTP server for delivery. The message sender, recipients, subject, and message body are specified using String objects. This method does not block the calling thread and allows the caller to pass an object to the method that is invoked when the operation completes. | |
SendAsync(_MailMessage,Olevariant) | Overloaded. Sends the specified email message to an SMTP server for delivery. This method does not block the calling thread and allows the caller to pass an object to the method that is invoked when the operation completes. | |
SendAsyncCancel | Cancels an asynchronous operation to send an email message. | |
SendMailAsync(String,String,String,String) | Overloaded. Sends the specified message to an SMTP server for delivery as an asynchronous operation. . The message sender, recipients, subject, and message body are specified using String objects. | |
SendMailAsync(_MailMessage) | Overloaded. Sends the specified message to an SMTP server for delivery as an asynchronous operation. | |
UnRegisterEventCallBack(ClrWString,Pointer) | Remove an event from the instance using the specified event name and function pointer which is the event handler. (Inherited from TClrBaseComponent.) | |
UnRegisterEventSource | Unregister the Delphi object which raised the .Net event handler. (Inherited from TClrBaseComponent.) |
See C:\Users\Public\Documents\CrystalNet Technologies\.Net VCL for Delphi Demo Folder after installation for examples of how to use this component.