AMX i!-EquipmentMonitor instruction manual EquipmentMonitorIn.axi Functions

Page 16

Running i!-EquipmentMonitor

Functions

The following table lists i!EmailIn.axi functions.

i!-EquipmentMonitorIn.axi Functions

Pop3ClearAllEmail

Syntax:

 

Messages

Pop3ClearAllEmailMessages()

 

Deletes all e-mails

Pop3ClearAllEmailMessages has no arguments.

from the internally

Example:

 

stored email list.

 

 

 

 

Pop3ClearAllEmailMessages()

 

Remarks:

 

 

Pop3ClearAllEmailMessages should be called when you want to delete all

 

messages from the internally stored e-mail list. Pop3ClearAllEmailMessages

 

updates nPop3QtyMail and nPop3TotalMail accordingly. This function does not

 

delete e-mails from the server.

 

 

 

Pop3ClearEmail

Syntax:

 

Message

SLONG Pop3ClearEmailMessage(Integer MsgNum)

 

Deletes an e-mail

Pop3ClearEmailMessage has these arguments:

from the internally

MsgNum:

The message number of the e-mail to be deleted.

stored e-mail list.

 

 

 

Pop3ClearEmailMessage returns these values:

 

-1 and 0:

If the MsgNum is invalid the e-mail was deleted successfully.

 

 

 

 

Example:

 

Pop3ClearEmailMessage(1)

 

Remarks:

 

 

Pop3ClearEmailMessage should be called when you want to delete a message from

 

the internally stored e-mail list. Deleting an e-mail from the internally stored list will most

 

likely affect message ordering. Pop3ClearEmailMessage updates nPop3QtyMail

 

and nPop3TotalMail accordingly. This function does not delete an e-mail from the

 

server.

 

 

 

 

Pop3GetEmail

Syntax:

 

Retrieves e-mail

Pop3GetEmail(CHAR Delete)

from the server.

Pop3GetEmail has these arguments:

 

 

Delete:

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

 

 

leave all e-mails on the server.

 

Example:

 

Pop3GetEmail(1)

Remarks:

Pop3GetEmail should be called when you want to manually force the retrieval of e-mail from the server. By default, it is not retrieved from the server automatically, and calling Pop3GetEmail is the only way to retrieve e-mail. If you have called Pop3SetRefresh to enable automatical e-mail retrieval, calling Pop3GetEmail also resets the timer so e-mail will not be retrieved again until the current refresh time has expired.

 

12

i!-EquipmentMonitor

 

 

 

Image 16
Contents EquipmentMonitor Software Limited Agreement Table of Contents Table of Contents Supported Operating Systems Minimum PC RequirementsInstalling i!-EquipmentMonitor #INCLUDE i!-EquipmentMonitorOut.axi Sending EmailDvSmtpSocket = Receiving Email BUTTONEVENTdvTP,1This is the body of my email! Wow, this is Cool #INCLUDE i!-EquipmentMonitorIn.axiPop3SetServer mail.mydomain.com Pop3SetRefresh300,1Seconds and should I delete? BUTTONEVENTdvPanel,6DATAEVENTdvPop3Socket Configuring for TimezoneSPop3EmailMessagenLoop.cAttachmentsnLoop1 EquipmentMonitorOut.axi Constants EquipmentMonitorOut.axiDvSmtpSocket EquipmentMonitorOut.axi Functions SmtpQueMessageSetCHAR Offset SmtpSetTimeOffSmtpSetServer ConfigNotify SmtpSetUserEncrBase64Encode SendNotifyEquipmentMonitorIn.axi EquipmentMonitorIn.axi ConstantsEquipmentMonitorIn.axi Functions Pop3SetServer Pop3SetRefreshPop3SetUser AMX reserves