Email
3-166 AT Commands Reference Manual June 30, 2008
+MEMW, Write or Update Email Message
This AT command is used to write a new email message or update an existing one.
The message is saved in memory, and the message ID is displayed to the user.
The following table shows the +MEMW parameters.
Example:
New Email
AT+MEMW=0,,"joe@mail.com"
> text for body is entered here
> new line is entered <CTRL+Z> //<CTRL+Z> ends the prompt text mode
//and returns to regular AT command mode
+MEMW: 109
OK
Notes: To create a new email message, <message_id> field must not be provided.
To update an email message, <message_id> field must be provided.
When updating a field, old value of the updated field is deleted.
Total body length decreased if Auto-signature text exists.
New emails are saved in DRAFTS, updated emails are saved in their current
folder.
Command
Type Syntax Response/Action Remarks
Set AT+MEMW=[<aos_field>],[
<message_id>],[<email_list/s
ubject>]<CR>
> Body text is entered
<ctrl-Z/ESC>
+MEMW: <message_id>
OK
or:
+CME ERROR: <err>
The Set command writes a
message and stores it.
Table 3-98:+MEMW Parameters
<Parameter> Description
<aos_field> 0 - Addresses of intended recipients of TO: field.
1 - Addresses of intended recipients of CC: field.
2 - Addresses of intended recipients of BCC: field.
3 - The subject of the current email message.
<message_id> Message identifier number created automatically for each existing mail in mail
storage.
<email_list/subject> <Email_list> - formatted email address/es with max input size of 500
characters for To & Cc fields, 250 characters for Bcc filed (list of email
addresses are separated by "," or ";").
<subject> - free text with max input size of 128 characters for this field.
Body Body of email message, with max input size of 3000 characters.
Text entry is followed by ctrl-Z for saving the message or ESC for aborting the
composer.