AMX i!-EquipmentMonitor instruction manual SmtpSetTimeOff, SetCHAR Offset, SmtpSetServer

Page 13

Running i!-EquipmentMonitor

i!-EquipmentMonitorOut.axi Functions (Cont.)

SmtpSetTimeOff-

SmtpSetTimeOffset has these arguments:

set(CHAR Offset[])

Offset String containing the local timezone offset. This string is formatted as "+/-

 

Call this to configure

HHMM" where "+/=" is "+" or "-" depending on your timezone relative to GMT, "HH" is

the local timezone

the offset in hours relative to GMT and "MM" is the offset in minutes relative to GMT.

 

Some Common Offsets are:

 

-0500 : Eastern time (UTC - 5:00)

 

-0600 : Central time (UTC - 6:00)

 

-0700 : Mountain time (UTC - 7:00)

 

-0800 : Pacific time (UTC - 8:00)

 

-0900 : Alaska (UTC - 9:00)

 

-1000 : Hawaii (UTC - 10:00)

 

+0000

: Greenwich Mean Time (same as UTC)

 

+0000

: Dublin, Edinburgh, Lisbon, London (UTC + 0:00)

 

+0100

: Brussels, Copenhagen, Madrid, Paris, Vilnius (UTC + 1:00)

 

+0100

: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna (UTC + 1:00)

 

+0200

: Eastern Europe (UTC + 2:00)

 

+0900

: Osaka, Sapporo, Tokyo (UTC + 9:00)

 

+0800

: Hong Kong SAR (UTC + 8:00)

 

+0700

: Bangkok, Hanoi, Jakarta (UTC + 7:00)

 

+0300

: Baghdad, Kuwait, Riyadh (UTC + 3:00)

 

+0200

: Israel (UTC + 2:00)

 

-0600 : Mexico City, Tegucigalpa (UTC - 6:00)

 

-0600 : Central America (UTC - 06:00)

 

+0200

: Jerusalem (UTC + 2:00)

 

+0300

: Nairobi (UTC + 3:00)

 

Example:

 

 

SmtpSetTimeOffset ('-0600')

 

Remarks:

 

 

SmtpSetTimeOffset should be called to configure i!-EquipmentMonitor to send emails

 

with the correct time. Some SPAM detectors may mark an e-mail as spam if the

 

timezone is not correctly reported.

 

i!-EquipmentMonitor is designed to work with i!-TimeManager to obtain timezone

 

information. If you have included i!-TimeManager in your program and the virtual

 

device for i!-TimeManager is defined as "vdvTmEvents", the timezone will be config-

 

ured correctly.

 

 

 

 

SmtpSetServer

Syntax:

 

Sets your SMTP

SmtpSetServer(CHAR Server[])

Server Name for your

SmtpSetServer has these arguments:

use.

Server:

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

 

 

SmtpSetServer does not return a value.

 

Example:

 

 

SmtpSetServer('mail.amx.com')

 

Remarks:

 

 

SmtpsetServer should be called in DEFINE_START of your application.

 

 

 

 

i!-EquipmentMonitor

9

 

 

 

 

Image 13
Contents EquipmentMonitor Software Limited Agreement Table of Contents Table of Contents Minimum PC Requirements Supported Operating SystemsInstalling i!-EquipmentMonitor #INCLUDE i!-EquipmentMonitorOut.axi Sending EmailDvSmtpSocket = 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,6DATAEVENTdvPop3Socket Configuring for TimezoneSPop3EmailMessagenLoop.cAttachmentsnLoop1 EquipmentMonitorOut.axi Constants EquipmentMonitorOut.axiDvSmtpSocket SmtpQueMessage EquipmentMonitorOut.axi FunctionsSetCHAR Offset SmtpSetTimeOffSmtpSetServer SmtpSetUser ConfigNotifyEncrBase64Encode SendNotifyEquipmentMonitorIn.axi Constants EquipmentMonitorIn.axiEquipmentMonitorIn.axi Functions Pop3SetServer Pop3SetRefreshPop3SetUser AMX reserves