I am trying to achieve send sms whenever google spreadsheet gets updated with mobile no. but its taking too long to execute, surely I am making any mistake but can't find out the one. Requesting your help. below is my script.
function denver() {
    var ss = SpreadsheetApp.getActiveSpreadsheet();
    ss.setActiveSheet(ss.getSheetByName("Form Responses 1"));
    var sheet = SpreadsheetApp.getActiveSheet();
    var dataRange = sheet.getRange("A2:M1000");
    var data = dataRange.getValues();
    for (i in data) {
        var rowData = data[i];
        var contactx = rowData[5];
        var textx = rowData[8];
        var Decision = rowData[12];
        var EMAIL_STATUS = rowData[28];
        var messages_url = "https://49.50.67.32/smsapi/httpapi.jsp? 
        username = maruti & password = maruti123 & from = MARUTI & to = " + contactx + " & text = " + 
        textx + "&coding=0&flash=2";
        var options = {
            "method": "post",
        };
        options.headers = {
            "Authorization": "Basic " + Utilities.base64Encode("maruti:MARUTI")
        };
        UrlFetchApp.fetch(messages_url, options);
    }
}
 
     
    