kirtan
Junior Member level 2
Hi
I am trying to send email through GPRS modem (SIM300) connected presently with serial port of PC and working on AT commands issued using hyper terminal.
I am able to connect to the smtp server of gmail. Once this is done it ask for STARTTLS before any command is issued. Once it issue this command server send me the message ready for TLS negotiation and then after when any command is sent, the connection is closed. Below are some of the efforts i have made using hyerterminal without success.
Kindly let me know how to do TLS negotiation and send an email. I have referred some of the threads on this forum, but could not get the direction. I am more an EC engg. know little less about the smtp protocols or way in which these server works....
kindly guide
at
OK
at+cmgf=1
OK
at+cscs="GSM"
OK
at+CGATT?
+CGATT: 1
OK
at+cipsrip=1
OK
at+cgdcont=1,"IP","portalnmms"
OK
at+cstt="portalnmms","",""
OK
at+ciicr
OK
at+cifsr
10.16.173.236
at+cipstatus
OK
STATE: IP STATUS
at+cdnsorip=0
OK
at+cipstart="TCP","74.125.115.109","25"
OK
CONNECT OK
RECV FROM:74.125.115.109:25
220 mx.google.com ESMTP e7sm2818994vdh.25
at+cipsend
> HELO smtp.gmail.com
SEND OK
RECV FROM:74.125.115.109:25
250 mx.google.com at your service
at+cipsend
> MAIL FROM:<mail@gmail.com>
SEND OK
RECV FROM:74.125.115.109:25
530 5.7.0 Must issue a STARTTLS command first. e7sm2818994vdh.25
at+cipsend
> STARTTLS
SEND OK
RECV FROM:74.125.115.109:25
220 2.0.0 Ready to start TLS
at+cipsend
> MAIL FROM:<vyasdd.diet@gmail.com>
SEND OK
CLOSED
----------------------------------
at+cipstart="TCP","74.125.115.109","25"
OK
CONNECT OK
RECV FROM:74.125.115.109:25
220 mx.google.com ESMTP ig8sm2864011vdb.3
at+cipstatus
OK
STATE: CONNECT OK
at+cipsend
> EHLO smtp.gmail.com
SEND OK
RECV FROM:74.125.115.1
250-mx.google.com at your service, [203.88.11.1]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCODES
250 PIPELINING
at+cipsend
> MAIL FROM:<vyasdd.diet@ gmail.com>
SEND OK
RECV FROM:74.125.115.109:25
530 5.7.0 Must issue a STARTTLS command first. ig8sm2864011vdb.3
at+cipsend
> STARTTLS
SEND OK
RECV FROM:74.125.115.109:25
220 2.0.0 Ready to start TLS
at+cipsend
> EHLO smtp.gmail.com
SEND OK
CLOSED
I am trying to send email through GPRS modem (SIM300) connected presently with serial port of PC and working on AT commands issued using hyper terminal.
I am able to connect to the smtp server of gmail. Once this is done it ask for STARTTLS before any command is issued. Once it issue this command server send me the message ready for TLS negotiation and then after when any command is sent, the connection is closed. Below are some of the efforts i have made using hyerterminal without success.
Kindly let me know how to do TLS negotiation and send an email. I have referred some of the threads on this forum, but could not get the direction. I am more an EC engg. know little less about the smtp protocols or way in which these server works....
kindly guide
at
OK
at+cmgf=1
OK
at+cscs="GSM"
OK
at+CGATT?
+CGATT: 1
OK
at+cipsrip=1
OK
at+cgdcont=1,"IP","portalnmms"
OK
at+cstt="portalnmms","",""
OK
at+ciicr
OK
at+cifsr
10.16.173.236
at+cipstatus
OK
STATE: IP STATUS
at+cdnsorip=0
OK
at+cipstart="TCP","74.125.115.109","25"
OK
CONNECT OK
RECV FROM:74.125.115.109:25
220 mx.google.com ESMTP e7sm2818994vdh.25
at+cipsend
> HELO smtp.gmail.com
SEND OK
RECV FROM:74.125.115.109:25
250 mx.google.com at your service
at+cipsend
> MAIL FROM:<mail@gmail.com>
SEND OK
RECV FROM:74.125.115.109:25
530 5.7.0 Must issue a STARTTLS command first. e7sm2818994vdh.25
at+cipsend
> STARTTLS
SEND OK
RECV FROM:74.125.115.109:25
220 2.0.0 Ready to start TLS
at+cipsend
> MAIL FROM:<vyasdd.diet@gmail.com>
SEND OK
CLOSED
----------------------------------
at+cipstart="TCP","74.125.115.109","25"
OK
CONNECT OK
RECV FROM:74.125.115.109:25
220 mx.google.com ESMTP ig8sm2864011vdb.3
at+cipstatus
OK
STATE: CONNECT OK
at+cipsend
> EHLO smtp.gmail.com
SEND OK
RECV FROM:74.125.115.1
250-mx.google.com at your service, [203.88.11.1]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCODES
250 PIPELINING
at+cipsend
> MAIL FROM:<vyasdd.diet@ gmail.com>
SEND OK
RECV FROM:74.125.115.109:25
530 5.7.0 Must issue a STARTTLS command first. ig8sm2864011vdb.3
at+cipsend
> STARTTLS
SEND OK
RECV FROM:74.125.115.109:25
220 2.0.0 Ready to start TLS
at+cipsend
> EHLO smtp.gmail.com
SEND OK
CLOSED