Running i!-EquipmentMonitor

i!-EquipmentMonitorIn.axi Functions (Cont.)

Pop3SetRefresh

Syntax:

 

Sets the refresh

Pop3SetRefresh(Integer Refresh, CHAR Delete)

time the include file

Pop3SetRefresh has these arguments:

checks for new

Refresh:

Integer containing the refresh time in seconds. 0 disables automatic e-

e-mails and

 

mail retrieval.

whether they should

 

 

 

be deleted form the

Delete:

1 or 0. 1 will delete all e-mails from the server as they are retrieved; 0 will

server.

 

leave all e-mails on the server.

 

Example:

 

Pop3SetRefresh(120,1)

 

Remarks:

 

 

Pop3SetRefresh should be called if you want to adjust when and how e-mail is

 

automatically retrieved from the server. By default, e-mail is not retrieved from the server

 

automatically.

 

 

 

 

Pop3SetServer

Syntax:

 

Sets Your POP3

Pop3SetServer(CHAR Server[])

Server Name for

Pop3SetServer has these arguments:

your use.

Server

String containing the name or IP of your e-mail (POP3) server.

 

 

Example:

 

 

Pop3SetServer('mail.amx.com')

 

Remarks:

 

 

Pop3SetServer should be called in DEFINE_START of your application.

 

 

 

Pop3SetUser

Syntax:

 

Sets your POP3

Pop3SetUser(CHAR User[], CHAR Pass[])

user name and

Pop3SetUser has these arguments:

password for you

User

String containing the user name of your e-mail (POP3) account.

e-mail (POP3)

 

 

account.

Pass

String containing the user password of your e-mail (POP3) account.

 

Pop3SetUser does not return a value.

 

Example:

 

Pop3SetUser('vmorrison','GoldenAutumnDay')

Remarks:

Pop3SetUser should be called in DEFINE_START of your application.

i!-EquipmentMonitor

13

 

 

 

 

Page 17
Image 17
AMX i!-EquipmentMonitor instruction manual Pop3SetRefresh, Pop3SetServer, Pop3SetUser