beautypg.com

Rainbow Electronics GM862-QUAD-PY User Manual

Page 41

background image





Easy GPRS User Guide

80000ST10028 Rev. 4 - 16/07/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 41 of 63


221 2.0.0 smtp.domain.com closing connection

+++

OK
AT#SH=1
OK


The Telit module is now back in the command mode and the socket is closed.

2) Using only AT commands is with the following sequence of commands issued to the Telit
module:



AT+CGDCONT=1,"IP","internet.gprs","0.0.0.0",0,0

(1-GPRS context setting)

AT#ESMTP

=

"smtp.domain.com"

(2-SMTP

server

setting)

AT#EUSER = "[email protected]"

(3-Authentication

setting)

AT#EPASSW

=

"telit"

(4-Authentication

setting)

AT#EADDR=

"[email protected]"

(5-Sender

address

setting)

AT#ESAV

(6-save

settings)


NOTE: Authentication settings could be different between GPRS and SMTP. This is due to the
fact that in the GPRS authentication it is requested user and password of your internet
provider, instead of the SMTP authentication where user and password is used to connect to
the SMTP server.



Now we need to activate the GPRS context:

AT#SGACT=1,1,“EASY GPRS“,“EASY GPRS“
#SGACT: 193.199.234.255
OK

This AT command gives as response the IP address of the module assigned by the network.

After receiving the OK indication, we can finally send an EMAIL:
AT#EMAILD="[email protected]","Email test",0
¾

this message is sent in order to test the Easy GPRS feature. Hello World!

CTRL-Z

NOTE: SMTP works only on context one (AT#SGACT=1,1)