Please shed some light on the following

There is one emailid on which my system will shoot email
u should write a program which will send sms if there is email in inbox
Actually in server room there is one temp sensor
which generates alret as email
and not SMS
so we need one windows EXE
which we can put in schedular
which read that email and if there is email.. it sends sms
using our SMS gateway

plz help me with this