protected void Button1_Click(object sender, EventArgs e) { zs.Model.Tbl_Message model = bll.GetModel(int.Parse(Request.QueryString["id"].ToString())); model.reply = this.TextBox1.Text.Trim(); model.replyTime = DateTime.Now; model.isShow = 1; bll.Update(model); string content = "<p>亲爱的" + name + "同学:</p><p style='text-indent:2em;'>您好!</p><p style='text-indent:2em;'>您于[" + asktime + "]在浙江树人大学招生网留言咨询:“" + conts + "”。</p><p style='text-indent:2em;'>我们的答复是:“" + this.TextBox1.Text.Trim() + "”。</p><p style='text-indent:2em;'>感谢您的咨询,愿我们的答案能让您满意!在此祝您生活幸福,学业有成!</p><p style='text-indent:2em;color:red'>(此邮件由zs.zjsru.edu.cn自动发送,请勿回复!)</p>"; this.Label1.Text = "回复成功!"; this.Label1.Text += ApplicationMethod.send_mail(mail, "浙江树人大学招生网留言回复", content, ""); }
protected void Button1_Click(object sender, EventArgs e) { this.Label1.Text = ApplicationMethod.send_mail("*****@*****.**", "ceshi", "ceshi", "*****@*****.**"); }