Unit SMTP

From Ultibo.org
Revision as of 05:27, 7 March 2017 by Ultibo (Talk | contribs)

Jump to: navigation, search

Return to Unit Reference


Description


Ultibo SMTP interface unit

To be documented

Constants



[Expand]
SMTP specific constants SMTP_*


[Expand]
SMTP status constants SMTP_STATUS_*


[Expand]
SMTP command constants SMTP_COMMAND_*


[Expand]
SMTP sub command constants SMTP_SUB_COMMAND_*


[Expand]
SMTP string constants SMTP_STRING_*


[Expand]
SMTP logging constants 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


To be documented

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);
Description: To be documented


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


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


Return to Unit Reference