AddFile
Add an enclosed file to the current message.
ConnectPOP
Make a connection to the POP3 server defined by the parameters ` and `.
DeleteMail
Delete the mail number n on the POP3 server. If there is no connection with the server or if there is no mail number n, the function returns false.
DisconnectPOP
Disconnect from the POP3 server. The disconnection is automatic at the destruction of the object.
Empty
Clear the current message. Use this function if you want to send or receive a new mail with the same object.
GetFile
With this function, you can retrieve the file enclosed in the current mail at index `. The full pathname of the file is copied in FileName`.
GetMailSize
Get the size in bytes of mail number n. Returns false if there is no mail n.
GetNumberOfMail
Return the number of mails in the mail box on the POP3 server.
LastError
This property contains the last error that occurred (connection problem, bad user name or password...).
POP3Port
Property containing the POP3 port. This IP port is used for the POP3 server connection (110 as default value).
POP3Server
This property contains the POP3 server that will be used by the function ReceiveMail. You can get or set it.
ReceiveMail
Retrieve the mail number ` from the POP3 server. The mail remains on the server; if you want to delete it, you must call the function DeleteMail. The optional parameters and (in MB) can limit the attached files reception. To retrieve the enclosed files, use the function GetFile`.
SendHtmlMail
Send an HTML formatted mail. The HtmlMessage parameter must be a valid HTML string. Before sending a message, you must set the SMTPServer property. You can also add some enclosed files with the method AddFile. The AuthLogin and AuthPwd can be used for SMTP servers which require an authentication. Set the ` parameter if the SMTP server needs a secure connection. If bESMTP is TRUE you can use the StartTLS protocol and put ` to TRUE.
SendMail
Send a mail. Before sending a message, you must set the SMTPServer property. You can also add some enclosed files with the method AddFile. The AuthLogin and AuthPwd can be used for SMTP servers which require an authentication. Set the ` parameter if the SMTP server needs a secure connection. If bESMTP is TRUE you can use the StartTLS protocol and put ` to TRUE.
SetUserPass
Set user and password for the POP3 connection.
SMTPPort
Property containing the SMTP port. This IP port is used for the SMTP server connection (25 as default value).
SMTPServer
This property contains the SMTP server that will be used by the function SendMail. You can get or set it.