Telit Wireless Solutions Easy GPRS User Manual

Page 30

Advertising
background image





Easy GPRS User Guide

80000ST10028 Rev. 1 - 14/03/07

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

page 30 of 37

The email can be sent following three different procedures:

1) Opening socket with SMTP server and then sending directly SMTP commands. The following

AT commands should be issued to the Telit module:

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

(1-GPRS context setting)

AT#USERID = "EASY GPRS"<cr>

(2-Authentication

setting)

AT#PASSW = "EASY GPRS"<cr>

(2-Authentication

setting)

AT#PKTSZ=300

(3-Socket setting)

AT#DSTO=50

(3-Socket setting)

AT#SKTTO=90

(3-Socket setting)

AT#SKTCT=600

(3-Socket setting)


For our convenience we will store all these parameters with the command:

AT#SKTSAV<cr>


Next step is activation of the GPRS context:

AT#GPRS=1<cr>
+IP: 193.199.234.255
OK

The command gives as response the IP address assigned by the network.

Now we can proceed with contacting the server with AT command for socket dial:

AT#SKTD= 0,25,"smtp.domain.com",0,0<cr>


When we receive the CONNECT indication, then we are exchanging data with the SMTP server
program on the remote host machine.

Following the SMTP protocol we proceed with the HELO presentation and mail delivery directly over
the serial line (in blu you can find the data sent by us, in violet the one received from host):

220 smtp.domain.com ESMTP Service (7.0.027-DD01) ready


HELO pcprova<cr><lf>


250 smtp.domain.com

AUTH LOGIN<cr><lf>

(authentication method)

334 VXRlcm8gkXU6

Z204NjJAZG9tYWluLmNvbQ==<cr><lf>

([email protected] base64 encoding)

334 UHFzc6dcvmQ6

Advertising