protected void sendAlert() { fullname = Session["fullname"].ToString(); email=Session["email"].ToString(); mobile = Session["mobile"].ToString(); Classes.Email em = new Classes.Email(); Classes.Messenger mess = new Classes.Messenger(); string msg = "Dear " + fullname + ",<br/>"; msg += "Transaction : " + Session["transID"].ToString().ToUpper() + " has been successfully validated!<br/>"; msg += "You may now use you items from your profile page.<br/>Regards"; string xmsg = "Dear " + fullname + ",\r\n"; xmsg += "Transaction : " + Session["transID"].ToString().ToUpper() + " has been successfully validated!\r\nYou may now use you items from your profile page.\r\nRegards"; string sub = "XPAY ALERT"; string f_email = "*****@*****.**"; string to_mail = email; string to_mobile = mobile; xmsg = Server.UrlEncode(xmsg); if (to_mobile.StartsWith("0")) { to_mobile = "234" + to_mobile.Remove(0, 1); } em.sendMail("XPAY ALERT", to_mail, f_email, sub, msg, ""); string stat = mess.send_sms(xmsg, "XPAY ALERT", to_mobile); }
protected void sendAlert() { if (Session["fullname"] != null) { fullname = Session["fullname"].ToString(); } if (Session["email"] != null) { email = Session["email"].ToString(); } if (Session["mobile"] != null) { mobile = Session["mobile"].ToString(); } Classes.Email em = new Classes.Email(); Classes.Messenger mess = new Classes.Messenger(); string msg = "Dear " + fullname + ",<br/>"; string xmsg = "Dear " + fullname + ",\r\n"; if (Session["Refno"] != null) { if (isr.ResponseCode == "00") { msg += "Your payment transaction has been successfully completed!<br/>"; msg += "Reason: " + isr.ResponseDescription + "<br />"; msg += "Transaction Reference: " + Session["Refno"].ToString().ToUpper() + "<br/>"; msg += "Payment Reference :" + payRef + "<br/>"; msg += "Please check your \"Payment Status\" or \"History Log\" to view more details!!<br/><br/>Regards"; xmsg += "Your payment transaction has been successfully completed\r\nReason: " + isr.ResponseDescription + "\r\nTransaction Reference: " + Session["Refno"].ToString().ToUpper() + " \r\nPayment Reference :" + payRef + "\r\nPlease check your 'Payment Status' or 'History Log' to view more details\r\nRegards"; } else { msg += "Your payment transaction was not successfull!<br/>"; msg += "Transaction Reference: " + Session["Refno"].ToString().ToUpper() + "<br/>"; msg += "Payment Reference :" + payRef + "<br/>"; msg += "Please check your \"Payment Status\" or \"History Log\" to view more details!!<br/><br/>Regards"; xmsg += "Your payment transaction was not successfull\r\nTransaction Reference: " + Session["Refno"].ToString().ToUpper() + " \r\nPayment Reference :" + payRef + "\r\nPlease check your 'Payment Status' or 'History Log' to view more details\r\nRegards"; } } string sub = "XPAY ALERT"; string f_email = "*****@*****.**"; string to_mail = email; string to_mobile = mobile; xmsg = Server.UrlEncode(xmsg); if (to_mobile.StartsWith("0")) { to_mobile = "234" + to_mobile.Remove(0, 1); } em.sendMail("XPAY ALERT", to_mail, f_email, sub, msg, ""); string stat = mess.send_sms(xmsg, "XPAY ALERT", to_mobile); }
protected void sendMsg() { if (Session["fullname"] != null) { fullname = Session["fullname"].ToString(); } if (Session["email"] != null) { email = Session["email"].ToString(); } Classes.Email em = new Classes.Email(); Classes.Messenger mess = new Classes.Messenger(); if (Session["msg"] != null) { string sub = rbl_mail_cat.SelectedValue+" From: "+fullname; string f_email = email; string to_mail = "*****@*****.**"; // string to_mail = rbl_mail_cat.SelectedValue.ToLower() + "@cldng.com"; string str=em.sendMail(rbl_mail_cat.SelectedValue, to_mail, f_email, sub, Session["msg"].ToString(), ""); if (str != "bad") { txt_msg.Text = ""; xsucc = 1; } } }