Please see code attached as promised. The Telit replies are in brackets ie (OK).
I have send emails ok using EMAILD with exactly the same SMTP login sequence.
‘ Setup
AT
(OK)
AT&K2 'XON/XOFFFLOW CONTROL mono
(OK)
AT+CGDCONT= 1,"IP","orangeinternet","0.0.0.0",0,0
(OK)
‘ SMTP login
AT#ESMTP= "smtp.orange.net"
(OK)
AT#EUSER="xxxx@orange.net"
(OK)
AT#EPASSW= "xxxxx"
(OK)
AT#EADDR= xxxxx@orange.net
(OK)
AT#ESAV
(OK)
‘ Activate
AT#SGACT=1,1,"IPEASY" ,"IPEASY"
(#SGACT:xx.xx.xx.xx)
(OK)
‘ Send an email
AT#SMTPCL= "xxxx@xxxx.com","Text test",0
(ERROR)
(This is the code to send the message body, but is not used as I stop program execution when I get the above error.)
‘ Send a text string via the serial port
command = "Hello from Telit Module" 'some text
send_command() ‘ send text plus a <CR>
‘ Send ctrl Z to terminate
command = Chr(26) 'ascii ctrl z character
send_command() ‘ctrl Z plus <CR>