AMX i!-EquipmentMonitor instruction manual Pop3SetRefresh, Pop3SetServer, Pop3SetUser

Page 17

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

 

 

 

 

Image 17
Contents EquipmentMonitor Software Limited Agreement Table of Contents Table of Contents Minimum PC Requirements Supported Operating SystemsInstalling i!-EquipmentMonitor DvSmtpSocket = Sending Email#INCLUDE i!-EquipmentMonitorOut.axi BUTTONEVENTdvTP,1 Receiving EmailThis is the body of my email! Wow, this is Cool #INCLUDE i!-EquipmentMonitorIn.axiPop3SetRefresh300,1 Pop3SetServer mail.mydomain.comSeconds and should I delete? BUTTONEVENTdvPanel,6SPop3EmailMessagenLoop.cAttachmentsnLoop1 Configuring for TimezoneDATAEVENTdvPop3Socket DvSmtpSocket EquipmentMonitorOut.axiEquipmentMonitorOut.axi Constants SmtpQueMessage EquipmentMonitorOut.axi FunctionsSmtpSetServer SmtpSetTimeOffSetCHAR Offset SmtpSetUser ConfigNotifyEncrBase64Encode SendNotifyEquipmentMonitorIn.axi Constants EquipmentMonitorIn.axiEquipmentMonitorIn.axi Functions Pop3SetUser Pop3SetRefreshPop3SetServer AMX reserves