protected void btnGui_Click(object sender, EventArgs e) { //Email_Without_Attachment(txtemail.Text, txtchude.Text, txtnoidung.Text); //MailMessage mailMessage = new MailMessage(); //mailMessage.To.Add("*****@*****.**"); //mailMessage.From = new MailAddress(txtemail.Text); //mailMessage.Subject = txtchude.Text; //mailMessage.Body = txtnoidung.Text; //SmtpClient smtpClient = new SmtpClient("smtp.gmail.com"); //smtpClient.Port = 587; //smtpClient.EnableSsl = true; //smtpClient.Send(mailMessage); Entity.LienLac obj = new Entity.LienLac(); obj.Ten = txtten.Text; obj.DiaChi = txtdiachi.Text; obj.DienThoai = txtdienthoai.Text; obj.Email = txtemail.Text; obj.ChuDe = txtchude.Text; obj.NoiDung = txtnoidung.Text; if (LienLacService.LienLac_Insert(obj) == true) { Response.Write("<script>alert('Cám ơn bạn đã gửi phản hồi về cho chúng tối!!!')</script>"); } ResetControl(); }
protected void btnGui_Click(object sender, EventArgs e) { Entity.LienLac obj = new Entity.LienLac(); obj.Ten = txtten.Text; obj.DiaChi = txtdiachi.Text; obj.DienThoai = txtdienthoai.Text; obj.Email = txtemail.Text; obj.ChuDe = txtchude.Text; obj.NoiDung = txtnoidung.Text; if (LienLacService.LienLac_Insert(obj) == true) { Response.Write("<script>alert('Cám ơn bạn đã gửi phản hồi về cho chúng tối!!!')</script>"); } ResetControl(); }