Description
Socket function used to retrieve mail from a POP3 server.
Syntax
retval = getmail(pop3servername, username, password, delete_Flag, outputfileprefix)
Parameters
Parameter | Description |
---|---|
pop3servername | The name of the POP3 mailserver containing the mail to retrieve. |
username | The email address of the mailbox owner |
password | The password of the mailbox owner. |
delete_flag | (Boolean) When true, the mail will be deleted on the server. |
outputfileprefix | The name of the output file to which mail information is written. The file extension is always .txt |
Remark
This function performs a mail download from a POP server.
Example
Declare Function GetMail, msg pop3servername = "my.pop3server" username = "someone@somewhere.com" password = "password" delete_flag = 0 outputfileprefix= "mymail" retval = GetMail(pop3servername, username, password, delete_Flag, outputfileprefix) Convert @vm To '-' In retval Convert @fm To '|' In retval x = Msg(@Window, 'Retval was |':retval)