Create SMS In ASP.net MVC



 string keyword = Request["kw"];

                Log.Info(string.Format("carrier:{0} - tracking.ID:{1} - keyword:{2}", carrier.ToString(), redirectTracking.ID, keyword));


                string action = Request["action"];

                if (action == null) action = "";


                // carrier = Carrier.Indosat;

                if (action.ToLower() == "mo" || carrier == Carrier.Unknown || carrier == Carrier.XL)

                {

                    string shortcode = Request["sc"];

                    

                    string moUri =

                        PSession.Phone.IsAndroidPhone

                            ? string.Format("sms:{0}?body=REG%20{1}%20{2}",

                                shortcode, keyword, redirectTracking.ID)

                            : string.Format("sms:{0}&body=REG%20{1}%20{2}",

                                shortcode, keyword, redirectTracking.ID);


                    Log.Info(string.Format("shortcode:{0} - moUri:{1}", shortcode, moUri));


                    return Redirect(moUri);

                }





Create SMS In ASP.net MVC Create SMS In ASP.net MVC Reviewed by Leo on April 12, 2022 Rating: 5

Tidak ada komentar

About me

About Me

My name is Joanne Doe, a lifestyle photographer and blogger currently living in Osaka, Japan. I write my thoughts and travel stories inside this blog.