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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

OK<br />

21.1.9 <strong>AT</strong>+SMTPSEND Initiate session and send e-mail<br />

Description<br />

The asynchronous <strong>command</strong> is used to initiate TCP session with SMTP server and send an e-mail<br />

after all mandatory parameters have been set correctly. After SMTP client has connected with<br />

specified SMTP server and SMTP client receives an indication that indicates SMTP server is<br />

working well, the <strong>command</strong> will return “+SMTP: OK”, but it doesn’t indicate that the e-mail is<br />

already sent successfully.<br />

After the e-mail is sent and the session is closed, an Unsolicited Result Code (URC) will be<br />

returned to TE, “+SMTP: SUCCESS” indicates the e-mail is sent successfully, and other URCs<br />

indicate an failed result and the session is closed.<br />

SIM PIN References<br />

YES Vendor<br />

Syntax<br />

Test Command<br />

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

Read Command<br />

<strong>AT</strong>+SMTPSEND<br />

Execution Command<br />

<strong>AT</strong>+SMTPSEND<br />

Responses<br />

OK<br />

Responses<br />

+SMTPSEND: <br />

OK<br />

Responses<br />

OK<br />

+SMTP: OK<br />

+SMTP: <br />

+SMTP: OK<br />

+SMTP: <br />

OK<br />

+SMTP: <br />

ERROR<br />

Defined values<br />

<br />

Whether or not an e-mail is sent in process. If the process of sending an e-mail is ongoing, SMTP<br />

client can’t send the e-mail again.<br />

0 – Not ongoing.<br />

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

5/15/2012

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

Saved successfully!

Ooh no, something went wrong!