Sending SMS once with arduino GPRS SIM900 if an input is HIGH
You need to attach an interrupt to the pin which is getting HIGH and then the function connected to the interrupt will have the code to send the SMS.

Just init the GPRS with connecting to the network then just wait for the interrupt to send anything.