Sim900a.code using arduino when door opens

Hello friends,

I need the code to integrate my door to sim900a gsm module, when the door opens i want a pre recorded call and a sms sent automatically from sim900a to my phone or to any other phone numbers.