EasyManua.ls Logo

CS RV50 - Sending to Multiple Addresses; Sending a Text Message to a Phone; Emailsend Program Example; Revision

CS RV50
50 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix B. EmailSend Using the GmailOutgoing SMTP Server
B-2
browser and point it to http://email.google.com. Enter the username and
password that your datalogger is using to send email. You should then see a red
bar at the top of the browser screen. Follow the listed instructions to allow the
datalogger to send email.
B.2 Sending to Multiple Addresses
Sending to multiple email address can be done by using a comma to separate
the email addresses (4355551212@hotmail.com, 4355551234@vtext.com).
B.3 Sending a Text Message to a Phone
To send a text message to a phone, the email needs to be converted to a text
message via an email-to-text message gateway. Most cellular providers have an
email-to-text message service for their phone subscribers. To send a text
message to AT&T® Wireless phone subscribers, send an email to the (10 digit
phone number of the person’s phone)@vtext.com (4355551234@vtext.com).
Most text messages are limited to 160 characters, so any email messages
greater than 160 characters will be truncated.
Email-to-Text Message Gateways
T-Mobile: phonenumber@tmomail.net
Virgin Mobile: phonenumber@vmobl.com
AT&T: phonenumber@txt.att.net
Sprint: phonenumber@messaging.sprintpcs.com
Verizon: phonenumber@vtext.com
B.4 EmailSend Program Example
CRBasic Example B-1 sends an email message when an alarm condition is
True. Both the CR6 and the RV50 modem must be configured as PPP as
described in Section 7.5, ACEmanager and Template Files
(p. 18), and Section
7.6, Enabling PPP Mode
(p. 20). Transport Layer Security (TLS) must be
enabled in the datalogger to use the Gmail mail server. (TLS is automatically
enabled in the CR6 and CR300 and in the CR1000/CR3000/CR800 with OS
revision 24 or later.)
CRBasic Example B-1. Using EmailSend to Send a Text Message
'Main program variables
Public Batt, RefTemp, Temp
'declare Email parameter strings (as constants), Message String & Result Variable
Const ServerAddr="smtp.gmail.com:587"
Const UserName="username@gmail.com"
Const Password="password"
Const ToAddr="datalogger@hotmail.com, 4355551234@vtext.com"
Const FromAddr=UserName
Const Subject="Email Message Test"
Const Attach=""
Const CRLF = CHR(13) & CHR(10)
Public AlarmTrigger As Boolean
Dim Message As String * 250
Public EmailServerResp As String * 50