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 />

Write Command<br />

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

[, , ]<br />

Execution Command<br />

<strong>AT</strong>+SMTPAUTH<br />

Responses<br />

OK<br />

Responses<br />

OK<br />

Defined values<br />

<br />

SMTP server authentication control flag, integer type.<br />

0 – SMTP server doesn’t require authentication, factory value.<br />

1 – SMTP server requires authentication.<br />

<br />

User name to be used for SMTP authentication, non empty string with double quotes and up to 128<br />

characters.<br />

<br />

Password to be used for SMTP authentication, string with double quotes and up to 128 characters.<br />

NOTE If is 0, and must be omitted (i.e. only is present).<br />

Examples<br />

<strong>AT</strong>+SMTPAUTH<br />

+SMTPAUTH: 0, “”, “”<br />

OK<br />

<strong>AT</strong>+SMTPAUTH=1,”username”,”password”<br />

OK<br />

<strong>AT</strong>+SMTPAUTH<br />

+SMTPAUTH: 0, ”username”, ”password”<br />

OK<br />

<strong>AT</strong>+SMTPAUTH<br />

OK<br />

<strong>AT</strong>+SMTPAUTH<br />

+SMTPAUTH: 0, “”, “”<br />

OK<br />

21.1.3 <strong>AT</strong>+SMTPFROM Sender address and name<br />

Description<br />

The synchronous <strong>command</strong> is used to set sender’s address and name, which are used to construct<br />

e-mail header. The sender’s address must be correct if the SMTP server requries, and if the process<br />

of sending an e-mail is ongoing, the <strong>command</strong> will return “ERROR” directly.<br />

Read <strong>command</strong> returns current sender’s address and name.<br />

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

5/15/2012

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

Saved successfully!

Ooh no, something went wrong!