Unit

ScMailMessage

 

Description

TScMailMessage represents an email message that can be sent using the TScSMTPClient class. TScMailMessage is used with message-based protocols, such as POP3 and SMTP.

To send a message using the SMTP protocol you create a TScMailMessage object and set the sender and recipient addresses in the From, Sender, ToAddress, CC, Bcc, ReplyTo properties.

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.

To send a message you call the TScSMTPClient.Send method.

 

See Also

Body

Headers

From

Sender

ToAddress

CC

Bcc

ReplyTo

ReturnReceiptTo

TScSMTPClient

 

SecureBridge Components, Copyright © 2007-2024 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support