Hi
I’m using the sample SMTP code. I’ve set my email username and password and sender address and receiver address. I’ve also set my gprs APN and username and password and pin code.
When I’m connecting to the smtp server, it gives me an WIP_CEV_ERROR 2, and I’ve read it’s because the remote server closed the connection abruptly. But I don’t know why it’s doing it. It looks asif it’s having trouble with EHLO, but i’ve telneted to theserver and issued the EHLO test command and it worked… So I really can’t figure this one out.
at+wcfm=2 (+WCFM: 0166,0 OK)
at+wcfm=5 (+WCFM: 00000471,0 OK)
ATI3 (R74a00gg.Q2687G 2106632 102809 12:57 OK)
at+wimei? (+WIMEI: 354060011325285 OK)
Here is the output of the shell window (I’ve replaced my username and password with XXXX ):
OK
+WIND: 14
+WIND: 0
+WIND: 7
+WIND: 13
+WIND: 1
+WIND: 16
+WIND: 4
+WIND: 10,“SM”,0,“FD”,0,“ON”,0,“SN”,0,“EN”,0
+WIND: 11,“5CDA023520D8FFF9B8221D1014230221”,
[GPRS]: open: -> DISCONNECTED
[GPRS]: start: -> CONNECTING
[GPRS]: GPRS EVENT SETUP OK (cid=1): GPRS activate
[GPRS]: GPRS EVENT: 27 (cid=1)
[GPRS]: GPRS EVENT ACTIVATE OK (cid=5)
[GPRS]: GPRS: -> CONNECTED
[SMTP] port=25
[SMTP] username=XXXX@vodamail.co.za
[SMTP] authentype=2
[SMTP] connect to host: smtp.vodamail.co.za:25
[WIP] new TCPCLIENT 0x180c36bc
[SMTP] Create: created session 0x180c41bc 668, socket= 0x180c36bc
Session wip_getOpts(): connect smtp.vodamail.co.za:25, U=XXXX@vodamail.co.za P=XXXX, 2
[SMTP] CnxEventHandler TCPsock: 2
[SMTP] CnxEventHandler TCPsock: 6
[SMTP] WriteHandler: TxState=1
[SMTP] CnxEventHandler TCPsock: 5
[SMTP] ReadHandler[IN]: TxState=1
[SMTP] read[58]: 220 ****************************************************[SMTP] GetStatusCode: code=220
[SMTP] WriteHandler: TxState=2
[SMTP<=] EHLO 41.18.18.237
[SMTP] CnxEventHandler TCPsock: 5
[SMTP] ReadHandler[IN]: TxState=2
[SMTP] read[41]: 502 5.5.2 Error: command not recognized[SMTP] GetStatusCode: code=502
[SMTP]=>EHLO not supported Status=502 !!
[SMTP] WriteHandler: TxState=3
[SMTP<=] AUTH LOGIN
[SMTP] CnxEventHandler TCPsock: 5
[SMTP] ReadHandler[IN]: TxState=3
[SMTP] read[41]: 502 5.5.2 Error: command not recognized[SMTP] GetStatusCode: code=502
[SMTP]=>AUTH LOGIN failed Status=502 !!
[ERROR SMTP]: 502
[WIP] closing SMTP_CONTROL 0x180c41bc
[SMTP] WriteHandler: TxState=16
[SMTP<=] QUIT
Release subLevelOptions
[WIP] closing TCPCLIENT 0x180c36bc
[GPRS]: -> PEER DISCONNECTING
[GPRS]: GPRS deactivate
Any help will be appreciated.
Thank you