AMX i!-EquipmentMonitor instruction manual EquipmentMonitorIn.axi Constants

Page 15

Running i!-EquipmentMonitor

i!-EquipmentMonitorIn.axi

Constants

The following table lists the i!-EquipmentMonitorIn.axi constants.

i!-EquipmentMonitorIn.axi Constants

dvPop3Socket

The IP device number for sending e-mails (default = 0:11:0}.

 

 

POP3_VERSION

Version number of the include file.

 

 

POP3_PORT

IP Port that the POP3 server is listening on (default = 110).

 

 

POP3_BUFFER_MAX

Maximum size of buffer for IP socket (default = 2048).

 

 

POP3_SERVER_TO

Timeout in 1/10 for contacting the POP3 server (default = 1200).

 

 

POP3_URL_MAX

Maximum length for e-mail server name (default = 1000).

 

 

POP3_USER_MAX

Maximum length for e-mail addresses (default = 500).

 

 

POP3_PASS_MAX

Maximum length for e-mail password (default = 100).

 

 

POP3_LINE_MAX

Maximum length for date, subject and attached file (default = 256).

 

 

POP3_MAX_EMAILS

Maximum number of e-mails to be retrieved (default = 20).

 

 

POP3_MSG_MAX

Maximum size of message body (default = 2000).

 

 

POP3_ATTACH_MAX

Maximum number of attachment file names stored (default = 5).

 

 

Structures

The following describes an i!-EquipmentMonitorIn.axi structure:

Structure _sEmailMessage

{

 

Integer

nMsgNum;

Char

cUniqueID[POP3_USER_MAX];

long

lMsgSize;

Char

cFrom[POP3_USER_MAX];

Char

cFromPersonal[POP3_USER_MAX];

Char

cTo[POP3_USER_MAX];

Char

cToPersonal[POP3_USER_MAX];

Char

cDate[POP3_USER_MAX];

Char

cSubject[POP3_LINE_MAX];

Char

cMessage[POP3_MSG_MAX];

Integer

nAttachCount;

Char

cAttachments[POP3_ATTACH_MAX][POP3_LINE_MAX];

Variables

The following are a list of i!-EquipmentMonitorIn.axi variables:

VOLATILE

_sEmailMessage

sEmailMessage[POP3_MAX_EMAILS] Emails retrieved from server

VOLATILE

 

Integer

 

nPop3QtyMail;

Number of message retrieved from server

VOLATILE

 

Integer

 

nPop3TotalMail;

Number of total messages on server

VOLATILE

 

CHAR

 

bPop3Debug

Set to 1 to debug

i!-EquipmentMonitor

11

 

 

 

 

Image 15
Contents EquipmentMonitor Software Limited Agreement Table of Contents Table of Contents Minimum PC Requirements Supported Operating SystemsInstalling i!-EquipmentMonitor Sending Email #INCLUDE i!-EquipmentMonitorOut.axiDvSmtpSocket = #INCLUDE i!-EquipmentMonitorIn.axi Receiving EmailBUTTONEVENTdvTP,1 This is the body of my email! Wow, this is CoolBUTTONEVENTdvPanel,6 Pop3SetServer mail.mydomain.comPop3SetRefresh300,1 Seconds and should I delete?Configuring for Timezone DATAEVENTdvPop3SocketSPop3EmailMessagenLoop.cAttachmentsnLoop1 EquipmentMonitorOut.axi EquipmentMonitorOut.axi ConstantsDvSmtpSocket SmtpQueMessage EquipmentMonitorOut.axi FunctionsSmtpSetTimeOff SetCHAR OffsetSmtpSetServer SendNotify ConfigNotifySmtpSetUser EncrBase64EncodeEquipmentMonitorIn.axi Constants EquipmentMonitorIn.axiEquipmentMonitorIn.axi Functions Pop3SetRefresh Pop3SetServerPop3SetUser AMX reserves