- Introduction
- License
- History
- Compilation & Hosting
- Configuration File
- Modules:
- FAQ
- Links
- Credits
|
Declaration:
-
function smtp_connect(const address, username, password: string): SMTPConnection;
Arguments:
-
address |
SMTP server address, valid syntax: 'host', 'host:port'. Host can be defined as host name or IP address as dotted quad. |
username |
User name for SMTP authorization, leave it blank if SMTP auth is not used |
password |
Password for SMTP authorization, leave it blank if SMTP auth is not used |
Description:
-
This function opens SMTP connection with a remote server. If authorization arguments are not empty lines LOGIN SMTP authorization will be used. Other auth methods are not supported yet.
Returns:
-
Valid SMTP connection handle on success, NIL (NULL) pointer on error.
Usage:
-
cp := smtp_connect('smtp.domain.com', '', '');
See also:
-
smtp_close, smtp_message, smtp_send.
|