Description

Socket function used to retrieve mail from a POP3 server.

Syntax

retval = getmail(pop3servername, username, password, delete_Flag, outputfileprefix)

Parameters

ParameterDescription
pop3servernameThe name of the POP3 mailserver containing the mail to retrieve.
usernameThe email address of the mailbox owner
passwordThe password of the mailbox owner.
delete_flag(Boolean) When true, the mail will be deleted on the server.
outputfileprefixThe 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)
  • No labels