Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Retrieve the Email by GSM Modem SIM 800/900

Status
Not open for further replies.

Help

Advanced Member level 2
Joined
Feb 15, 2005
Messages
617
Helped
7
Reputation
14
Reaction score
3
Trophy points
1,298
Activity points
7,065
Dear all...

Code:
AT
// OK

// 3.1  Bearer profile
// Configure bearer profile 1
AT+SAPBR=3,1,"Contype","GPRS"
// OK

// To open a GPRS context.
AT+SAPBR=3,1,"APN","3Gprepaid"
// OK

// To query the GPRS context
AT+SAPBR=1,1
// OK

// To close a GPRS context.
AT+SAPBR=2,1
// +SAPBR: 1,1,"10.168.207.36"

// OK


// 3.5 Retrieve the Email
// Set parameters of Email 
AT+EMAILCID=1
// OK

AT+EMAILTO=30
// OK

AT+EMAILSSL=1
// OK


// Set POP3 server and account 
AT+POP3SRV="pop.gmail.com","xxx@gmail.com","xxx",995
// OK

// Log in POP3 server
AT+POP3IN
// OK

// +POP3IN: 1

// Get Email number and total size 
AT+POP3NUM
// OK
// +POP3NUM: 1,267,7430098

// Get the specific Email’s size
AT+POP3LIST=1 
// OK
// +POP3LIST: 1,1,6900

// Retrieve the specific Email
AT+POP3CMD=4,1
// OK
// +POP3CMD: 1
// +POP3READ: 3,2254

// Get the Email content
AT+POP3READ=1460
// +POP3READ: 1,1460

AT+POP3READ=1460
// +POP3READ: 1,1460

// The Email’s content is read completely
AT+POP3READ=1460
// +POP3READ: 1,1460

// Log out POP3 SERVER 
AT+POP3OUT
// OK

// +POP3OUT: 1

https://cdn-shop.adafruit.com/datasheets/sim800_series_email_application_note_v1.00.pdf
https://www.scribd.com/document/325717874/SIM800-Series-AT-Command-Manual-V1-10

I'm trying to retrieve the email from gmail. I manage to retrieve the email but i couldn't find that email in my inbox and the strange thing is try to trace back the email in inbox record it doesn't exist. Whenever i repeatedly call the command again it retrieve out difference email, seems like it retrieved the email randomly.

Is it possible to retrieve that particular email that we pointed?

Thank you..
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top