logo资料库

SIM800 Series_Email_Application Note_V1.02.pdf

第1页 / 共13页
第2页 / 共13页
第3页 / 共13页
第4页 / 共13页
第5页 / 共13页
第6页 / 共13页
第7页 / 共13页
第8页 / 共13页
资料共13页,剩余部分请下载后查看
About Document
Version History
Scope
Contents
1 Introduction
1.1 Purpose of the document
1.2 Related documents
1.3 Conventions and abbreviations
2 Email Introduction
2.1 Features
3 AT commands
4 Email Examples
4.1 Bearer profile
4.2 Send an Email
4.3 Send an Email with an attachment
4.4 Send a UTF-8 Email
4.5 Retrieve the Email
4.6 Delete the Email
4.7 Get the Email’s size and unique-id
SIM800 Series_ Email _Application Note GPRS Module SIMCom Wireless Solutions Limited Building B, SIM Technology Building, No.633, Jinzhong Road Changning District, Shanghai P.R. China Tel: 86-21-31575100 support@simcom.com www.simcom.com
SIM800 Series_Email_Application Note_V1.02 SIM800 Series_Email _Application Note 1.02 2020.6.15 Released Document Title: Version: Date: Status: GENERAL NOTES SIMCOM OFFERS THIS INFORMATION AS A SERVICE TO ITS CUSTOMERS, TO SUPPORT APPLICATION AND ENGINEERING EFFORTS THAT USE THE PRODUCTS DESIGNED BY SIMCOM. THE INFORMATION PROVIDED IS BASED UPON REQUIREMENTS SPECIFICALLY PROVIDED TO SIMCOM BY THE CUSTOMERS. SIMCOM HAS NOT UNDERTAKEN ANY INDEPENDENT SEARCH FOR ADDITIONAL RELEVANT INFORMATION, INCLUDING ANY INFORMATION THAT MAY BE IN THE CUSTOMER’S POSSESSION. FURTHERMORE, SYSTEM VALIDATION OF THIS PRODUCT DESIGNED BY SIMCOM WITHIN A LARGER ELECTRONIC SYSTEM REMAINS THE RESPONSIBILITY OF THE CUSTOMER OR THE CUSTOMER’S SYSTEM INTEGRATOR. ALL SPECIFICATIONS SUPPLIED HEREIN ARE SUBJECT TO CHANGE. COPYRIGHT THIS DOCUMENT CONTAINS PROPRIETARY TECHNICAL INFORMATION WHICH IS THE PROPERTY OF SIMCOM WIRELESS SOLUTIONS LIMITED COPYING, TO OTHERS AND USING THIS DOCUMENT, ARE FORBIDDEN WITHOUT EXPRESS AUTHORITY BY SIMCOM. OFFENDERS ARE LIABLE TO THE PAYMENT OF INDEMNIFICATIONS. ALL RIGHTS RESERVED BY SIMCOM IN THE PROPRIETARY TECHNICAL INFORMATION ,INCLUDING BUT NOT LIMITED TO REGISTRATION GRANTING OF A PATENT , A UTILITY MODEL OR DESIGN. ALL SPECIFICATION SUPPLIED HEREIN ARE SUBJECT TO CHANGE WITHOUT NOTICE AT ANY TIME. SIMCom Wireless Solutions Limited Building B, SIM Technology Building, No.633 Jinzhong Road, Changning District, Shanghai P.R. China Tel: +86 21 31575100 Email: simcom@simcom.com For more information, please visit: https://www.simcom.com/download/list-863-en.html For technical support, or to report documentation errors, please visit: https://www.simcom.com/ask/ or email to: support@simcom.com Copyright © 2020 SIMCom Wireless Solutions Limited All Rights Reserved. www.simcom.com 2 / 13
SIM800 Series_Email_Application Note_V1.02 About Document Version History 2013.08.01 Ping.Zhang 2016.11.17 Wenjie.Lai Fan.Fang /Wenjie.Lai 2020.06.15 What is new New version Scope All Version Date V1.00 V1.01 Owner V1.02 Scope This document can apply to SIM800 series modules with Email function. www.simcom.com 3 / 13
SIM800 Series_Email_Application Note_V1.02 Contents About Document .................................................................................................................... 3 Version History ...................................................................................................................................... 3 Scope .................................................................................................................................................... 3 Contents ................................................................................................................................. 4 Introduction ...................................................................................................................... 5 1 1.1 Purpose of the document ............................................................................................................ 5 1.2 Related documents ..................................................................................................................... 5 1.3 Conventions and abbreviations ................................................................................................... 5 2 Email Introduction ........................................................................................................... 6 Features ...................................................................................................................................... 6 2.1 3 AT commands .................................................................................................................. 7 4 Email Examples ............................................................................................................... 8 Bearer profile .............................................................................................................................. 8 4.1 Send an Email ............................................................................................................................. 8 4.2 Send an Email with an attachment .............................................................................................. 9 4.3 4.4 Send a UTF-8 Email ................................................................................................................. 10 4.5 Retrieve the Email ..................................................................................................................... 11 4.6 Delete the Email ........................................................................................................................ 12 4.7 Get the Email’s size and unique-id ............................................................................................ 13 www.simcom.com 4 / 13
SIM800 Series_Email_Application Note_V1.02 1 Introduction 1.1 Purpose of the document This document presents the AT command of Email operation and application examples. Developers could understand and develop application quickly and efficiently based on this document. 1.2 Related documents [1] SIM800 Series_AT Command Manual [2] SIM800 Series_TCPIP_Application Note 1.3 Conventions and abbreviations Abbreviation GPRS IP EMAIL SMTP POP3 Description General Packet Radio Service Internet Protocol Electronic Mail Simple Mail Transfer Protocol Post Office Protocol 3 www.simcom.com 5 / 13
SIM800 Series_Email_Application Note_V1.02 2 Email Introduction This document presents Email features for SIM800 Series. 2.1 Features  SIM800 Series supports to send an Email with an attachment via SMTP protocol. It also supports carbon copy (abbreviated Cc:) recipient and blind carbon copy (abbreviated Bcc:) recipient.  SIM800 Series supports to retrieve and delete the Email via POP3 protocol, the Email may be with attachments.  SIM800 Series supports all of POP3 commands but APOP. By these POP3 commands, you can get the specific Email’s size and unique-id.  SIM800 Series does not support that SMTP and POP3 operations are executed at the same time. www.simcom.com 6 / 13
SIM800 Series_Email_Application Note_V1.02 3 AT commands Below is the email associated with AT commands, detailed information please refer to document [1]. Through these AT commands can achieve the following functions.  Via the SMTP protocol to send e-mail with attachments.  Through the POP3 protocol to accept or delete e-mail.  To obtain the specified mail message (size and unique identifiers). Command AT+EMAILCID AT+EMAILTO AT+SMTPSRV AT+SMTPAUTH AT+SMTPFROM AT+SMTPRCPT AT+SMTPSUB AT+SMTPBODY AT+SMTPFILE AT+SMTPSEND AT+SMTPFT AT+SMTPCS AT+POP3SRV AT+POP3IN AT+POP3NUM AT+POP3LIST AT+POP3UIDL AT+POP3CMD AT+POP3READ AT+POP3DEL AT+POP3RSET AT+POP3OUT Description Set Email Bearer Profile Identifier Set Timeout Value of SMTP/POP3 Server Response Set SMTP Server Address and Port Set User Name and Password for SMTP Authentication Set Sender Address and Name Set the Email Recipient(TO/CC/BCC) Address and Name Set the Email Subject Set the Email Body Set the Email Attachment Send the Email Transfer the Email Attachment Set the Email Charset Set POP3 Server and Account Log In POP3 Server Get Email Number and Total Size Get the Specific Email Size Get the Specific Email Unique-id Get Multi-line Response Read Multi-line Response Mark the Specific Email to Delete Unmark the Emails that Be Marked as Deleted Log Out POP3 Server www.simcom.com 7 / 13
SIM800 Series_Email_Application Note_V1.02 4 Email Examples There are some examples to explain how to use these commands. 4.1 Bearer profile //Example of bearer profile AT+SAPBR=3,1,”Contype”,”GPRS” OK AT+SAPBR=3,1,”APN”,”CMNET” OK AT+SAPBR=1,1 OK AT+SAPBR=2,1 +SAPBR:1,1,”10.89.193.1” OK AT+SAPBR=0,1 OK +SAPBR 1: DEACT 4.2 Send an Email // Configure bearer profile 1 // To open a GPRS context. // To query the GPRS context // To close a GPRS context. // GPRS context is released by network //Example of sending an email AT+EMAILCID=1 OK AT+EMAILTO=30 OK AT+SMTPSRV=”mail.sim.com”,25 OK AT+SMTPAUTH=1,”john”,”123456” OK AT+SMTPFROM=”john@sim.com”,”john” //Set parameters of Email //Set SMTP server address and port //Set user name and password //Set sender address and name www.simcom.com 8 / 13
分享到:
收藏