AMX i!-EquipmentMonitor Instruction Manual page 9

Amx corporation i!-equipmentmonitor instruction manual
Table of Contents

Advertisement

Pop3SetServer ('mail.mydomain.com')
Or
Pop3SetServer ('192.168.12.175')
Next, you need to setup the user and password for the email account you will be retrieving email
from. Your email administrator should supply you with a user name and password for an email
account that can receive email. Once you have these, call
like this:
Pop3SetRefresh(300,1)
Seconds and should I delete?
Supplying a refresh time of 0 seconds disables automatic email retrieval. If you decide you want to
retrieve email manually, all you need to do is call
parameter: a flag (1 or 0) indicating if you want email deleted from the server. You can call
Pop3GetEmail()
You might supply the user with a button to force email to be retrieved like this:
BUTTON_EVENT[dvPanel,6]
{
PUSH:
}
You can check for the email to arrive by waiting for the offline message from the
device. i!-EquipmentMonitor makes the emails available to you in three different variables:
sPop3EmailMessage
nPop3TotalMail
default = 20) and how many emails were on the server when i!-EquipmentMonitor last logged in.
Up to
POP3_MAX_EMAILS
you retrieve them again.
sPop3EmailMessage
the following items:
LmsgSize
cFrom[]
cFromPersonal[]
cTo[]
cToPersonal[]
cDate[]
cSubject[]
cMessage[]
NattachCount
cAttachments[][]
The subject and body are the items you need most in the structure. The count of file attachments
tells you the total number of files attached but the
POP3_ATTACH_MAX
are supplied for reference.
i!-EquipmentMonitor
even if you have setup for automatic email retrieval to force email to be retrieve.
Pop3GetEmail(0);
,
nPop3QtyMail
tell you how many email messages were retrieved (up to
are downloaded and all other emails, if any, remain on the server until
is an array of structures containing the actual emails. The structure contains
The number of bytes in the email message.
A string containing the senders email address.
The friendly name of the sender (if one was supplied).
A string containing the recipient's email address or addresses.
The friendly name of the recipient if one was supplied.
A string containing the data and time the email was sent.
The subject of the email.
The body of the email.
The number of attachments to the email.
The names of the files attached.
(default is 5) file names. The attached files are not saved. Only the file names
Pop3SetUser()
// How often the check email server in
Pop3GetEmail()
and
.
nPop3TotalMail
nPop3QtyMail
containing up to
cAttachments
Running i!-EquipmentMonitor
and supply these values
.
takes 1
Pop3GetEmail()
dvPop3Socket
and
POP3_MAX_EMAILS
Continued
,
5

Advertisement

Table of Contents
loading

Table of Contents