SYNAPSE - Synchronous TCP/IP Library for Delphi
Other related information can be found at http://www.ararat.cz/synapse/
Class: TPOP3Send
- Properties:
- Timeout:integer
Define timeout in millisecond for all PING operations. Default value is 300 seconds.
- POP3Host:string
Define POP3 server for all operations. Default value is 'localhost'.
- POP3Port:string
Define TCP port for all operations. Default value is '110'.
- ResultCode:integer
Result code of last POP3 operation. 0 - error, 1 - OK.
- ResultString:string
Result string of last POP3 operation.
- FullResult:TStringList
Stringlist with full lines returned as result of POP3 operation. I.e. if operation is LIST, this property is filled by list of messages. If operation is RETR, this property have dowloaded message.
- username:string
Username for login to POP3 server.
- password:string
Password for login to POP3 server.
- StatCount:integer
After STAT command is there count of messages in inbox.
- StatSize:integer
After STAT command is there size of all messages in inbox.
- TimeStamp:string
If server support this, after comnnect is in this property timestamp of remote server.
- Methods:
- Function Connect:Boolean
Connect to remote POP3Host and Pop3port. If all OK, result is true.
- Function login:Boolean
If remote POP3 server support APOP, try login by APOP method. If APOP is not supported, or if APOP login failed, try classic USER+PASS login method. If all OK, result is true.
- Procedure Logout
Disconects from POP3 server.
- Function reset:Boolean
Send RSET command. If all OK, result is true.
- Function noop:Boolean
Send NOOP command. If all OK, result is true.
- Function stat:Boolean
Send STAT command and fill StatCount and StatSize property. If all OK, result is true.
- Function list(value:integer):Boolean
Send LIST command. If Value is 0, LIST is for all messages. After successful operation is listing in FullResult. If all OK, result is true.
- Function retr(value:integer):Boolean
Send RETR command. After successful operation dowloaded message in FullResult. If all OK, result is true.
- Function dele(value:integer):Boolean
Send DELE command for delete specified message. If all OK, result is true.
- Function top(value,maxlines:integer):Boolean
Send TOP command. After successful operation dowloaded headers of message and maxlines count of message in FullResult. If all OK, result is true.
- Function uidl(value:integer):Boolean
Send UIDL command. If Value is 0, UIDL is for all messages. After successful operation is listing in FullResult. If all OK, result is true.