Good day
I am trying to send an email using SMTP, but I am getting an error stating that the authentication command is used when it should not have been used. In the code the connection channel is created and the next event that is caught is the WIP_CEV_ERROR event. Does anyone know how to solve this?
This is the output from shell:
The response
[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=maritadutoit@gmail.com
[SMTP] authentype=2
[SMTP] connect to host: mail.cmobile.co.za:25
[WIP] new TCPCLIENT 0x18103590
[SMTP] Create: created session 0x18104790 668, socket= 0x18103590
Session wip_getOpts(): connect mail.cmobile.co.za:25, U=maritadutoit@gmail.com P=selna1960, 2
[SMTP] CnxEventHandler TCPsock: 2
[SMTP] CnxEventHandler TCPsock: 6
[SMTP] WriteHandler: TxState=1
[SMTP] CnxEventHandler TCPsock: 5
[SMTP] ReadHandler[IN]: TxState=1
[SMTP] read[72]: 220 mta2.cmobile.co.za ESMTP Exim 4.69 Wed, 20 Oct 2010 13:47:05 +0200[SMTP] GetStatusCode: code=220
[SMTP] WriteHandler: TxState=2
[SMTP<=] EHLO 41.54.204.98
[SMTP] CnxEventHandler TCPsock: 5
[SMTP] ReadHandler[IN]: TxState=2
[SMTP] read[58]: 250-mta2.cmobile.co.za Hello 41.54.204.98 [41.54.204.98][SMTP] GetStatusCode: code=250
[SMTP] read[19]: 250-SIZE 52428800[SMTP] GetStatusCode: code=250
[SMTP] read[16]: 250-PIPELINING[SMTP] GetStatusCode: code=250
[SMTP] read[10]: 250 HELP[SMTP] GetStatusCode: code=250
[SMTP] WriteHandler: TxState=3
[SMTP<=] AUTH LOGIN
[SMTP] CnxEventHandler TCPsock: 5
[SMTP] ReadHandler[IN]: TxState=3
[SMTP] read[43]: 503 AUTH command used when not advertised[SMTP] GetStatusCode: code=503
[SMTP]=>AUTH LOGIN failed Status=503 !!
[ERROR SMTP]: 503
[WIP] closing SMTP_CONTROL 0x18104790
[SMTP] WriteHandler: TxState=16
[SMTP<=] QUIT
Release subLevelOptions
[WIP] closing TCPCLIENT 0x18103590
[GPRS]: -> PEER DISCONNECTING
[GPRS]: GPRS deactivate
[GPRS]: close: -> CLOSED
Any help would be appreciated.
Marita