How to send sms

/*

  • this is a programme written for geting a persons location using gprs.
    */
    //initialize the pin on arduino on which the gprs will be connected for transmission and recieving
    #include <SoftwareSerial.h>
    #include<GSM.h>
    #define PINNUMBER "";
    int trans = 10;
    int reciev = 11;
    // setup the programme to begin when the button is pressed
    void setup() {
    Serial.begin(9600);
    pinMode(trans,INPUT);
    pinMode(reciev,OUTPUT);
    Serial.begin(9600);//This opens up communications to the Serial monitor in the Arduino IDE
    }
    // SETUP THE LOOP
    void loop()
    {
    if(Serial.available()>0)
    {
    void SendTextMessage();
    {
    mySerial.println("AT+CMGF=1"); //to print number in text mode
    delay(1000); //in miliseconds
    mySerial.println("AT+CMGS="+919717889680"\r"); //for the number to which the message has to be sent
    delay(1000); //in miliseconds
    mySerial.println("The current location is:"); //the message to be sent
    delay(1000); //the delay in miliseconds
    }
    }
    {
    else
    {
    NOTHING;
    }
    }
    }

This is the code that I have written.