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.
AT&K2 'XON/XOFFFLOW CONTROL mono
‘ SMTP login
‘ Send an email
AT#SMTPCL= "firstname.lastname@example.org","Text test",0
(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>