The TScSMTPClient component implements functionality of the SMTP/SMTPS client.
The SMTP protocol is used to send email messages to recipients through the SMTP server.
The SMTP client supports data transfer over a secure TLS/SSL channel (the SMTPS protocol). You use the TLSMode property to manage security.
The message body is set in the Body property, and the required Internet headers are set in the Headers property. You can also set the charset in the ContentCharset property to encode Body, and transfer encoding in the ContentTransferEncoding property. To add attached objects you use the Attachments collection.
The TScSMTPClient class throws an EScSMTPError exception when an error occurs during execution of any command on the SMTP server.