Specifications

EMAILMANAGEMENTATCOMMANDS
HSPA+ATCommandsReferenceGuide 268
Syntax
Command Commandtype
AT#ERST Execute
AT#ERST=? Test
SMTPReadMessage#EMAILMSG
ExecutecommandreturnsthelastresponsefromSMTPserver.
TestcommandreturnstheOKresultcode.
Syntax
Command Commandtype
AT#EMAILMSG Execute
AT#EMAILMSG=? Test
SendMailwithAttachment#SMTPCL
ThiscommandpermitstosendanemailwithdifferenttypesofattachmentsifGPRScontexthasalreadybeen
activated.See#SGACTor#GPRS.
Aftersendingmessagebodytext(aswith#EMAILD),thecommandswitchestoonlinemodeifattachmentmustbe
sent.
Whileinonlinemode,datareceivedontheserialpo
rtistransmittedontheSMTPsocketasMIMEattachment.
TheescapesequencemustbesenttoclosetheSMTP connection.
Encodingofdatareceivedontheserialportisperformedifrequired(binarydata),beforetransmissiononthe
SMTPsocket.
Testcommandreportsthesupportedrangeofvaluesfor<da>,<subj>,<att>[,<filename>,<encod>].
Syntax
Command Commandtype
AT#SMTPCL=<da>,<subj>,<att>[,<filename>,<encod>]
AT#SMTPCL=? Test
ParametersandValues
<da> Stringtype,destinationaddress.Maximumlength100characters.
<subj> Stringtype,subjectofmessage.Maximumlength100characters.
<att> Attachedfileflag.
0 Noattachment.
1 Attachatxtfile.
2 Attachabinaryfile,forexamplejpg,bin,orpdf.
<filename> Attachedfilename.Maximumlength50characters.
<encod> ContentTransferEn
codingusedforattachment.
0 “7bit”meansdataallrepresentedasshortlinesofUSASCIIdata.