Difference between revisions of "TSmtpCli"
Jump to navigation
Jump to search
m (→Methods) |
|||
Line 84: | Line 84: | ||
{| | {| | ||
− | | width="140" valign="top" | [[TSmtpCli.Abort | Abort]] |||| | + | | width="140" valign="top" | [[TSmtpCli.Abort | Abort]] |||| Cancels any transactions in progress, close server connection. |
|- | |- | ||
− | | valign="top" | [[TSmtpCli.Auth | Auth]] |||| | + | | valign="top" | [[TSmtpCli.Auth | Auth]] |||| Sends SMTP command '''AUTH''' starting the authentication process. |
|- | |- | ||
− | | valign="top" | [[TSmtpCli.Connect | Connect]] |||| | + | | valign="top" | [[TSmtpCli.Connect | Connect]] |||| Connects to the mail server. |
|- | |- | ||
| valign="top" | [[TSmtpCli.Create | Create]] |||| Constructor | | valign="top" | [[TSmtpCli.Create | Create]] |||| Constructor | ||
|- | |- | ||
− | | valign="top" | [[TSmtpCli.Data | Data]] |||| | + | | valign="top" | [[TSmtpCli.Data | Data]] |||| Sends SMTP command '''DATA'''. |
|- | |- | ||
| valign="top" | [[TSmtpCli.Destroy | Destroy]] |||| Destructor | | valign="top" | [[TSmtpCli.Destroy | Destroy]] |||| Destructor | ||
|- | |- | ||
− | | valign="top" | [[TSmtpCli.Ehlo | Ehlo]] |||| | + | | valign="top" | [[TSmtpCli.Ehlo | Ehlo]] |||| Sends SMTP command '''EHLO'''. |
|- | |- | ||
− | | valign="top" | [[TSmtpCli.Helo | Helo]] |||| | + | | valign="top" | [[TSmtpCli.Helo | Helo]] |||| Sends SMTP command '''HELO'''. |
|- | |- | ||
| valign="top" | [[TSmtpCli.HighLevelAsync | HighLevelAsync]] |||| Execute multiple commands consecutively | | valign="top" | [[TSmtpCli.HighLevelAsync | HighLevelAsync]] |||| Execute multiple commands consecutively | ||
|- | |- | ||
− | | valign="top" | [[TSmtpCli.Mail | Mail]] |||| | + | | valign="top" | [[TSmtpCli.Mail | Mail]] |||| Executes methods [[TSmtpCli.MailFrom | MailFrom]], [[TSmtpCli.RcptTo | RcptTo]], and [[TSmtpCli.Data | Data]] consecutively. |
|- | |- | ||
− | | valign="top" | [[TSmtpCli.MailFrom | MailFrom]] |||| | + | | valign="top" | [[TSmtpCli.MailFrom | MailFrom]] |||| Sends SMTP command '''MAIL FROM''' |
|- | |- | ||
− | | valign="top" | [[TSmtpCli.Open | Open]] |||| | + | | valign="top" | [[TSmtpCli.Open | Open]] |||| Executes methods [[TSmtpCli.Connect | Connect]], [[TSmtpCli.Ehlo | Ehlo]], and [[TSmtpCli.Auth | Auth]] consecutively. |
|- | |- | ||
− | | valign="top" | [[TSmtpCli.Quit | Quit]] |||| | + | | valign="top" | [[TSmtpCli.Quit | Quit]] |||| Sends SMTP command '''QUIT''' |
|- | |- | ||
− | | valign="top" | [[TSmtpCli.RcptNameAdd | RcptNameAdd]] |||| | + | | valign="top" | [[TSmtpCli.RcptNameAdd | RcptNameAdd]] |||| Assigns recipients to the various recipient lists. |
|- | |- | ||
− | | valign="top" | [[TSmtpCli.RcptTo | RcptTo]] |||| | + | | valign="top" | [[TSmtpCli.RcptTo | RcptTo]] |||| Sends SMTP command '''RCPT TO''', for each recipient in the lists. |
|- | |- | ||
− | | valign="top" | [[TSmtpCli.Rset | Rset]] |||| | + | | valign="top" | [[TSmtpCli.Rset | Rset]] |||| Sends SMTP command '''RSET'''. |
|- | |- | ||
− | | valign="top" | [[TSmtpCli.ThreadAttach | ThreadAttach]] |||| | + | | valign="top" | [[TSmtpCli.ThreadAttach | ThreadAttach]] |||| Attaches the component to current thread context. |
|- | |- | ||
− | | valign="top" | [[TSmtpCli.ThreadDetach | ThreadDetach]] |||| | + | | valign="top" | [[TSmtpCli.ThreadDetach | ThreadDetach]] |||| Detaches the component from current thread context. |
|- | |- | ||
− | | valign="top" | [[TSmtpCli.Vrfy | Vrfy]] |||| | + | | valign="top" | [[TSmtpCli.Vrfy | Vrfy]] |||| Sends SMTP command '''VRFY'''. |
|} | |} | ||
Revision as of 19:48, 21 February 2006
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 | ||
LastResponse | ||
LocalAddr | ||
MailMessage | ||
MessageID | ||
OwnHeaders | ||
Password | ||
Port | ||
RcptName | ||
RequestType | ||
ShareMode | ||
SignOn | ||
State | ||
Username | Align test |
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
How to