shell script to send separate mails to different users from a text file

Hi Friends,

Could you guys help me out of this problem... I need to send an email to all the users and the email has to be picked from the text file.
text file contains the no. of records like:

Code:
giridhar
224285
847333
giridhar276@gmail.com
ramana
84849
33884
venkata.ramana@gmail.com
kishore
838393
484949
kishore.pulapa@gmail.com
venkat
434334
343433
venkateswararao@gmail.com
Every four lines make one record. For example consider the first record. I need to send a mail to giridhar276@gmail.com containing the his details "giridhar,224285,847333".
Now the details in the second record(next four lines) has to be sent to venkata.ramana@gmail.com

Like wise I need to send an email to other users alsooo......