Watch this video if you want to see the live demo,
Before you begin make sure your SIM900 GSM module has acquired the network and it is ringing when you make a call to it. Then test the basic AT commands and then proceed further.
Once you are ready, you can start by first setting up the GPRS connection as follows,
Text in RED is typed by me and text in GREEN is the response from SIM900 module.
Setting up GPRS connection
Set the connection type to GPRS
Set the APN to to “www” since i am using a Vodafone SIM card, It might be different for you, and depends on the network
Enable the GPRS
Query if the connection is setup properly, if we get back a IP address then we can proceed
Sending a email to using SMTP protocol
Here in this demonstration i will be using email account NON SSL settings and credentials i got from my web server cPanel as shown below,
Before we begin we need to have the following information for sending email using SIM900 module.
- Receivers email address – (firstname.lastname@example.org, email@example.com, firstname.lastname@example.org)
- Senders email address – (email@example.com)
- Senders email password – (pass123)
- Outgoing SMTP server address – (mail.marsinnovations.in)
- Outgoing SMTP server address port number – (25)
Start by setting up the Email bearer profile identifier
Set the timeout value within which you will enter the email data to be sent, Here i have set it to 30 seconds
Set the SMTP server address and port number
Set the email authentication information
Set the senders email address and Name
Set the To email address and Name
Set the Cc email address and Name
Set the Bcc email address and Name
Set the email Subject, You can set whatever you want. I have set it as MySubject
Time to enter the email content. Enter the below command and you will get a > prompt after which you should type content and press Ctrl+Z when you are done or send 0x1A hex character.
> Hello Ravi How are you..fgbmklbgk….
Send the email by entering the below command, if you get the URC +SMTPSEND: 1 then email is successfully sent
Now check your receiver email Inbox and you should find the email with text “Hello Ravi How are you..fgbmklbgk….”
Hope it helps someone.
- SIM900 DTMF commands
- SIM900 GPRS HTTP AT Commands
- SIM900 & SIM908 GSM module – Autobaud rate [Solution]
- SIM900 SMS and Call Commands
- SIM900 / SIM800 USSD Code AT Commands – Working example
2 thoughts on “SIM900 GPRS EMAIL AT Commands”
hello sir , i got always 61 error .. how to do it with Gmail?
I dont think it would work with Gmail as it uses IMAP