Appendix B. EmailSend Using the Gmail Outgoing SMTP Server
B-2
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
The following example sends an email message when an alarm condition is True.
Both the CR1000 and LS300G-EU modem must be configured as PPP as
described in Section
7.5
,
AceManager and Template Files
(p. 14)
, and Section
7.6
,
Enabling PPP Mode
(p. 17)
. Transport Layer Security (TLS) must be enabled in the
datalogger to use the Gmail mail server. (TLS is automatically enabled in the
CR6 and in the CR1000/CR3000/CR800 with OS revision 24 or later.)
'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
Public EmailResult
DataTable (TenSecData,True,-1)
DataInterval (0,10,Sec,10)
Sample (1,Batt,FP2)
Sample (1,Temp,FP2)
EndTable
DataTable(EmailLog,True,10)
Sample (1,EmailResult,FP2)
Sample (1,EmailServerResp,String)
Sample (1,Message,String)
EndTable
Summary of Contents for LS300G-EU
Page 2: ......
Page 4: ......
Page 6: ......
Page 8: ......
Page 31: ...User Manual 21 Figure 9 1 Can t Connect...
Page 33: ...User Manual 23 Figure 9 3 One computer can connect other s cannot...
Page 34: ...LS300G EU GSM GPRS EDGE HSPA Sierra Wireless Cellular Modem 24...
Page 40: ...Appendix B EmailSend Using the Gmail Outgoing SMTP Server B 4...
Page 44: ...Appendix C Configuring the LS300G EU for Dynamic IP C 4...
Page 50: ...Appendix E LS300G EU Settings E 4...
Page 53: ...Appendix F Regulatory Information F 3 F 6 RoHS Compliance...