Difference between revisions of "TSmtpCli"

From Overbyte
Jump to navigation Jump to search
Line 52: Line 52:
 
| valign="top" | [[TSmtpCli.HdrTo | HdrTo]] ||||
 
| valign="top" | [[TSmtpCli.HdrTo | HdrTo]] ||||
 
|-
 
|-
| valign="top" | [[TSmtpCli.Host | Host]] |||| Specifies the host name or IP Address of SMTP host
+
| valign="top" | [[TSmtpCli.Host | Host]] |||| Specifies the host name or IP Address of the SMTP host
 
|-
 
|-
 
| valign="top" | [[TSmtpCli.LastResponse | LastResponse]] ||||
 
| valign="top" | [[TSmtpCli.LastResponse | LastResponse]] ||||
Line 66: Line 66:
 
| valign="top" | [[TSmtpCli.Password | Password]] |||| Specifies the password for SMTP login
 
| valign="top" | [[TSmtpCli.Password | Password]] |||| Specifies the password for SMTP login
 
|-
 
|-
| valign="top" | [[TSmtpCli.Port | Port]] |||| Specifies the port number of SMTP host
+
| valign="top" | [[TSmtpCli.Port | Port]] |||| Specifies the port number of the SMTP host
 
|-
 
|-
 
| valign="top" | [[TSmtpCli.RcptName | RcptName]] ||||
 
| valign="top" | [[TSmtpCli.RcptName | RcptName]] ||||

Revision as of 12:40, 13 February 2007

Main page -> ICS component reference -> TSmtpCli

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
Mail 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
OnResponse
OnSessionClosed
OnSessionConnected

How to

question



ICS Components Reference