Appendix B. EmailSend Using the Gmail™ Outgoing 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 (
,
).
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 (
).
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:
Virgin Mobile:
AT&T:
Sprint:
Verizon:
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="[email protected]"
Const
Password="password"
Const
ToAddr="[email protected], [email protected]"
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
Summary of Contents for RV50
Page 2: ......
Page 6: ......
Page 38: ...Appendix B EmailSend Using the Gmail Outgoing SMTP Server B 4 ...
Page 42: ...Appendix C Configuring the RV50 for Dynamic IP C 4 ...
Page 47: ...Appendix E Regulatory Information E 3 E 5 RoHS Compliance ...
Page 48: ...Appendix E Regulatory Information E 4 ...
Page 49: ......