Unit SMTP

From Ultibo.org
Jump to: navigation, search

Return to Unit Reference


Description


Ultibo SMTP Interface unit

Constants



[Expand]
SMTP specific constants SMTP_*


[Expand]
SMTP status SMTP_STATUS_*


[Expand]
SMTP command SMTP_COMMAND_*


[Expand]
SMTP sub command SMTP_SUB_COMMAND_*


[Expand]
SMTP string SMTP_STRING_*


[Expand]
SMTP logging SMTP_LOG_*


Type definitions



SMTP client notify event

TSMTPClientNotifyEvent = procedure(const ARequest:String) of Object;

SMTP host event

TSMTPHostEvent = function(AConnection:TSMTPConnection):Boolean of Object;

SMTP count event

TSMTPCountEvent = function(AConnection:TSMTPConnection):Boolean of Object;

SMTP notify event

TSMTPNotifyEvent = procedure(AConnection:TSMTPConnection; const ARequest:String) of Object;

SMTP request event

TSMTPRequestEvent = function(AConnection:TSMTPConnection; const ARequest:String; var AReply:String):Boolean of Object;

SMTP authenticate event

TSMTPAuthenticateEvent = function(AConnection:TSMTPConnection; const AMethod,AUsername,APassword:String; var AReply:String):Boolean of Object;

SMTP connection event

TSMTPConnectionEvent = procedure(AConnection:TSMTPConnection) of Object;


Class definitions



SMTP helper classes

TSMTPBuffer = class(TObject)

SMTP client classes

TSMTPClient = class(TWinsock2TCPClient)

SMTP server classes

TSMTPConnection = class(TListObject)
TSMTPListener = class(TWinsock2TCPListener)


Public variables



SMTP logging

SMTP_DEFAULT_LOG_LEVEL:LongWord = SMTP_LOG_LEVEL_DEBUG; Minimum level for SMTP messages. Only messages with level greater than or equal to this will be printed.
SMTP_LOG_ENABLED:Boolean;


Function declarations



Initialization functions

[Expand]
procedure SMTPInit;
Description: To be documented


SMTP helper functions

[Expand]
procedure SMTPLog(Level:LongWord; const AText:String);
Description: To be documented


[Expand]
procedure SMTPLogInfo(const AText:String); inline;
Description: To be documented


[Expand]
procedure SMTPLogWarn(const AText:String); inline;
Description: To be documented


[Expand]
procedure SMTPLogError(const AText:String); inline;
Description: To be documented


[Expand]
procedure SMTPLogDebug(const AText:String); inline;
Description: To be documented


Return to Unit Reference