Difference between revisions of "TSmtpCli"
Jump to navigation
Jump to search
Line 146: | Line 146: | ||
| valign="top" | [[TSmtpCli.OnRcptToError | OnRcptToError]] |||| | | valign="top" | [[TSmtpCli.OnRcptToError | OnRcptToError]] |||| | ||
|- | |- | ||
− | | valign="top" | [[TSmtpCli.OnRequestDone | OnRequestDone]] |||| | + | | valign="top" | [[TSmtpCli.OnRequestDone | OnRequestDone]] |||| Triggered when a request is completed. |
|- | |- | ||
| valign="top" | [[TSmtpCli.OnResponse | OnResponse]] |||| | | valign="top" | [[TSmtpCli.OnResponse | OnResponse]] |||| |
Revision as of 14:01, 23 September 2007
Main page -> ICS component reference -> TSmtpCli
Contents
Overview
- unit SmtpProt
- inheritance TCustomSmtpCli->TSmtpCli
Component TSmtpCli implements client-side of the Simple Mail Transfer Protocol as specified in RFC 2821, and MIME message format according to RFC 1521 and 2045. Currently supported SMTP Service Extensions for Authentication are AUTH LOGIN, AUTH PLAIN, AUTH CRAM-MD5 and AUTH CRAM-SHA1 (RFC 2554 as well as RFC 1734). The TSmtpCli is working non-blocking, a synchronously working counterpart is also available, see TSyncSmtpCli.
Properties
AuthType | Specifies the authentication methode to be used with method Auth. | |
AuthTypesSupported | ||
CharSet | ||
ConfirmReceipt | ||
Connected | ||
ContentType | ||
CtrlSocket | The underlying instance of TWSocket handles the connection and raw data exchange. | |
EmailFiles | ||
ErrorMessage | ||
FromName | ||
Handle | ||
HdrCc | ||
HdrFrom | ||
HdrPriority | ||
HdrReplyTo | ||
HdrReturnPath | ||
HdrSender | ||
HdrSubject | ||
HdrTo | ||
Host | Specifies the host name or IP Address of the SMTP host | |
LastResponse | ||
LocalAddr | ||
MailMessage | ||
MessageID | ||
OwnHeaders | ||
Password | Specifies the password for SMTP login | |
Port | Specifies the port number of the SMTP host | |
RcptName | ||
RequestType | ||
ShareMode | ||
SignOn | ||
State | ||
Username | Specifies the username for SMTP login |
Methods
Abort | Cancels any transactions in progress, close server connection. | |
Auth | Sends SMTP command AUTH starting the authentication process. | |
Connect | Connects to the mail server. | |
Create | Constructor | |
Data | Sends SMTP command DATA. | |
Destroy | Destructor | |
Ehlo | Sends SMTP command EHLO. | |
Helo | Sends SMTP command HELO. | |
HighLevelAsync | Execute multiple commands consecutively | |
Executes methods MailFrom, RcptTo, and Data consecutively. | ||
MailFrom | Sends SMTP command MAIL FROM | |
Open | Executes methods Connect, Ehlo, and Auth consecutively. | |
Quit | Sends SMTP command QUIT | |
RcptNameAdd | Assigns recipients to the various recipient lists. | |
RcptTo | Sends SMTP command RCPT TO, for each recipient in the lists. | |
Rset | Sends SMTP command RSET. | |
ThreadAttach | Attaches the component to current thread context. | |
ThreadDetach | Detaches the component from current thread context. | |
Vrfy | Sends SMTP command VRFY. |
Events
OnAfterFileOpen | Align test | |
OnAttachContentType | ||
OnAttachHeader | ||
OnBeforeFileOpen | ||
OnCommand | ||
OnDisplay | ||
OnGetData | ||
OnHeaderLine | ||
OnProcessHeader | ||
OnRcptToError | ||
OnRequestDone | Triggered when a request is completed. | |
OnResponse | ||
OnSessionClosed | ||
OnSessionConnected |
How to