u must studied the AT commands for gsm modem.
AT+CNMI=2,2,0,0,0 /* this command is for receiving the msg and delete. */
u can give AT+CMGR=1 for reading the msg…. but it will save in sim memory….
using AT+CNMI=2,2,0,0,0… it will read and delete the msg..
the received msg will stored in RCREG register…..