Rainbow Electronics GM862-QUAD-PY User Manual

Page 368

Advertising
background image




AT Commands Reference Guide

80000ST10025a Rev. 5 - 09/07/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 368 of 434

#SEMAIL - E-mail Sending With GPRS Context Activation

SELINT 0 / 1

The device responds to the command with the prompt '>' and awaits for
the message body text.

To complete the operation send Ctrl-Z char (0x1A hex); to exit without
writing the message send ESC char (0x1B hex).

If e-mail message is successfully sent, then the response is OK.
If message sending fails for some reason, an error code is reported

Note: Care must be taken to ensure that during the command execution,
no other commands are issued.

To avoid malfunctions is suggested to wait for the OK or ERROR / +CMS
ERROR:<err>
response before issuing further commands.

Note: sending an e-mail with an image attachment can take quite a long
time since it can be over 50Kb to send and can take more than 1 minute.

Example

AT#SEMAIL="[email protected]","subject of the mail",1
>message body… this is the text of the mail message…

CTRL-Z

..wait..

OK

Message has been sent.

Note

This command is obsolete. It’s suggested to use the couple #EMAILACT
and #EMAILD instead of it.


#SEMAIL - E-mail Sending With GPRS Context Activation

SELINT 2

AT#SEMAIL=[<da>,
<subj>,<att>
[,<filename>]]

Execution command activates a GPRS context, if not previously activated
by #EMAILACT, and sends an e-mail message. The GPRS context is
deactivated when the e-mail is sent.

Parameters:
<da> - destination address, string type.
<subj> - subject of the message, string type.
<att> - attached image flag; if <filename> is present and not empty, <att>

is assumed to be always 1, no matter what value it really is.

0 - don't attach any image
1 - attach the last snapshot taken
<filename> - attached image file name on remote party (default is

“snapshot.jpg”)


The device responds to the command with the prompt '>' and awaits for
the message body text.

Advertising