protected void SendEmail() { objEmail.To = BALuser.GetEmail(); objEmail.Subject = "Welcome To shaadisaagai.com"; objEmail.Host = "mail.shaadisaagai.com"; objEmail.sendTemplateMSg(lblUser.Text + "(" + Session["uid_gender"].ToString().Split('_')[0] + ")", Server.MapPath("MSGTemplates\\WelcomeMSG1.txt"), Server.MapPath("MSGTemplates\\WelcomeMSG2.txt")); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DataBindig.BintPlan(ddlPlaneName); if (Request.QueryString["PlaneID"] != null) { ddlPlaneName.SelectedValue = Request.QueryString["PlaneID"].ToString(); objuserdetail.User_Id = Session["uid_gender"].ToString().Split('_')[0]; txtEmail.Text = objuserdetail.GetEmail(); } } }