Exemple #1
0
        static void Main(string[] args)
        {
            OneSixtybyTwo o160 = new OneSixtybyTwo("username", "pass");

            o160.Login();
            o160.SendSms("10 digit phone", "Test Message");

            Way2Sms oway2 = new Way2Sms("username", "pass");

            oway2.Login();
            oway2.SendSms("10 digit phone", "Test Message");

            Console.WriteLine("Press any key to exit");
            Console.ReadLine();
        }
Exemple #2
0
        public int SendSMS()
        {
            int Result = 0;

            try
            {
                SoftmindWebservicesEntities Entities = new SoftmindWebservicesEntities();
                var     MessageResult = Entities.GetTodayMessage();
                Way2Sms oway2         = new Way2Sms("8866671361", "9825146475");
                oway2.Login();
                foreach (GetTodayMessage_Result Msg in MessageResult)
                {
                    String ContactNo   = Msg.MobileNo;
                    string Description = Msg.Description;
                    oway2.SendSms(ContactNo, Description);
                }
            }
            catch (Exception ex)
            {
            }
            return(Result);
        }
        public bool notifyViaSMS(Case_Personal_Info case_new)
        {
            string caseMessage     = "You have been registered at Imdaad Foundation. You will be notified about Acceptence or Rejection once verification is complete.\nCoordinator Imdaad Foundation.";
            string verifierMessage = "You have a new Case to Verify at " + case_new.c_address + ". Your verification partner is " + case_new.secondary_verifier + ". Please get in touch for more information.\nCoordinator, Imdaad Foundation";

            bool status1 = wts.SendSms(case_new.contact, caseMessage);                 //send to applicant
            bool status2 = wts.SendSms(case_new.verifier.ToString(), verifierMessage); //send to verifier
            bool status_secondary_verifier = wts.SendSms(case_new.secondary_verifier, verifierMessage);

            if (!status1 && !status2)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }