Campbell Scientific CR1000 Measurement and Control System User Manual
Page 519

Appendix A. CRBasic Programming Instructions
519
EMailRecv
Polls an SMTP server for email messages and stores the message portion of the
email in a string variable.
Syntax
variable = EMailRecv("ServerAddr", "ToAddr", "FromAddr",
"Subject", Message, "Authen", "UserName", "PassWord",
Result)
EMailSend
Sends an email message to one or more email addresses via an SMTP server.
Syntax
variable = EMailSend("ServerAddr", "ToAddr", "FromAddr",
"Subject", "Message", "Attach", "UserName", "PassWord",
Result)
EthernetPower
Controls power state of all Ethernet devices.
Syntax
EthernetPower(state)
FTPClient
Sends or retrieves a file via FTP.
Syntax
Variable = FTPClient("IPAddress", "User", "Password",
"LocalFileName", "RemoteFileName", PutGetOption)
HTTPGET
Sends a request to an HTTP server using the Get method.
Syntax
HTTPGET( URI, Response, Header)
HTTPOut
Defines a line of HTML code to be used in a datalogger‐generated HTML file.
Syntax
WebPageBegin
("WebPageName", WebPageCmd)
HTTPOut
("
html string to output " + variable + " additional
string to output
")HTTPOut
("
html string to output " + variable + " additional
string to output
")WebPageEnd
HTTPPOST
Sends files or text strings to a URL.
Syntax
HTTPPOST( URI, Contents, Response, Header)
HTTPPUT
Sends a request to the HTTP server to store the enclosed file/data under the
supplied URI.
Syntax
HTTPPUT(URI, Contents, Response, Header, NumRecs, FileOption)