22.01.2015 Views

this SIM5218 AT command manual - Cooking Hacks

this SIM5218 AT command manual - Cooking Hacks

this SIM5218 AT command manual - Cooking Hacks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>SIM5218</strong> Serial <strong>AT</strong> Command Set<br />

<strong>AT</strong>+SMTPSUB<br />

OK<br />

Defined values<br />

<br />

E-mail subject, string with double quotes, and ASCII text up to 512 characters. will be<br />

present in the header of the e-mail sent by SMTP client in the field: “Subject: ”. For write<br />

<strong>command</strong>, if the subject contains non-ASCII characters, <strong>this</strong> parameter should contain a prefix of<br />

{non-ascii}.<br />

Examples<br />

<strong>AT</strong>+SMTPSUB<br />

+SMTPSUB: “”<br />

OK<br />

<strong>AT</strong>+SMTPSUB=”THIS IS A TEST MAIL”<br />

OK<br />

<strong>AT</strong>+SMTPSUB={non-ascii}”E6B58BE8AF95E982AEE4BBB6”<br />

OK<br />

<strong>AT</strong>+SMTPSUB<br />

+SMTPSUB: “THIS IS A TEST MAIL”<br />

OK<br />

21.1.6 <strong>AT</strong>+SMTPBODY E-mail body<br />

Description<br />

The <strong>command</strong> is used to set e-mail body, which will be sent to SMTP server with text format.<br />

Read <strong>command</strong> returns current e-mail body. If the process of sending an e-mail is ongoing, the<br />

<strong>command</strong> will return “ERROR” directly.<br />

Execute <strong>command</strong> will switch the serial port from <strong>command</strong> mode to data mode, so TE can enter<br />

more ASCII text as e-mail body (up to 5120), and CTRL-Z (ESC) is used to finish (cancel) the<br />

input operation and switch the serial port back to <strong>command</strong> mode.<br />

NOTE After an e-mail is sent successfully, the body will be cleared, if unsuccessfully, it won’t be<br />

cleared. When execute <strong>command</strong> <strong>AT</strong>+SMTPBODY, and display “>”, the prevenient body will be<br />

cleared.<br />

SIM PIN References<br />

YES Vendor<br />

Syntax<br />

Test Command<br />

<strong>AT</strong>+SMTPBODY=<br />

Responses<br />

OK<br />

<strong>SIM5218</strong>_Serial _<strong>AT</strong>C_V1.36 410<br />

5/15/2012

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!