C-1
Appendix C. EmailSend Using the
Gmail Outgoing SMTP Server
The datalogger has a mail client in it similar to a mail client on a computer.
For the datalogger to send an email, it needs an SMTP server to send
through like any other mail client. The Telus Wireless SMTP server can be
used for sending outgoing email from the datalogger. Contact your service
provider for more information.
In order for the datalogger to send email, a PPP connection
between the datalogger and modem is required. Please refer
to Appendix B for details on this configuration.
C.1 Setting up a Gmail Account
First you need to create a Gmail account if you do not already have one. To
create an account, go to
www.gmail.com
. Gmail accounts are free of
charge.
The credentials to access the mail server will be the user name and
password used when creating the Gmail account.
In the following example program you will see:
•
ServerAddr set to smtp.gmail.com
•
UserName set to (the gmail account user name)
•
Password (the one you established at Gmail)
C.2 Sending to Multiple Addresses
Sending to multiple email address can be done by using a comma to
separate the email addresses (
dataloggers@campbellsci.ca
,
customer@emailaddress.com
).
C.3 Sending a Text Message to a Phone
The datalogger can only send email messages. 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.
Telus's max text message size is 132 characters, any email messages
greater than 132 characters will be sent as a second message. Contact
your service provider for information about their email to text message
gateway server address.
NOTE