public ActionResult Index() { string timestamp = Request.Params["scts"]; string sender = Request.Params["oa"]; string content = Request.Params["ud"]; if (sender != null) { sender = sender.Trim('+', ' '); sender = s_NameMap.LookupNumber(sender); } MailMessage mm = new MailMessage(Settings.MailFrom, Settings.MailTo); mm.Subject = "SMS from " + sender; mm.Body = content ?? "Empty message"; SmtpClient client = new SmtpClient(Settings.SmtpHost, 587); client.Credentials = new NetworkCredential(Settings.SmtpUser, Settings.SmtpPassword); client.EnableSsl = true; client.DeliveryFormat = SmtpDeliveryFormat.International; client.Send(mm); return(Content("OK")); }