using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using WorkoPlus.PayPalIntegration; using WorkoPlus.BOL; public partial class SubscriptionThankyou : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { PayPalHelper PayPal = new PayPalHelper(); //string strFilepath = Server.MapPath("employer/logos/") + "PayPalRequests.txt"; //Helper.SaveRequest(strFilepath, true); //Helper.Mail("mkhalidnoor@yahoo.com", "Khalid", "postmaster@workspecial.com", "This is msg autoreturn", "Test", strFilepath); //DataTable dt = UserSubscription.GetById(Convert.ToInt32(Request.Form["invoice"])).Tables[0]; //if (dt != null && dt.Rows.Count > 0) //{ // string mailMessage = "We are processing you subscription details that are \n"; // mailMessage += "\nSubscription Date : " + Convert.ToDateTime(dt.Rows[0]["SubscriptionDate"]).ToString("MM-dd-yyyy"); // mailMessage += "\nExpiration Date : " + dt.Rows[0]["StatusDetails"]; // mailMessage += "\nSubscription Package: " + dt.Rows[0]["Description"] + " ( " + dt.Rows[0]["Duration"].ToString() + " " + dt.Rows[0]["DurationTypeDescription"].ToString() + " )"; // mailMessage += "\nSubscription Package Details: " + dt.Rows[0]["DetailDescription"]; // mailMessage += "\nSubscription Status: " + dt.Rows[0]["StatusDescription"]; // Helper.Mail(dt.Rows[0]["EMail"].ToString(), "Workspecial", "postmaster@workspecial.com", mailMessage, "Subscription Details @ WorkSpecial", ""); //} } }