TSmtpCli

From Overbyte
Revision as of 14:03, 23 September 2007 by Frla (talk | contribs)
Jump to navigation Jump to search

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 Triggered for every command/response. Is very useful to output for debug-purposes.
OnGetData
OnHeaderLine
OnProcessHeader
OnRcptToError
OnRequestDone Triggered when a request is completed.
OnResponse
OnSessionClosed
OnSessionConnected

How to

question



ICS Components Reference