//send mail
   MailMessage message = new MailMessage();
   message.To = this.txtEmail.Text.Trim();
   message.From = this.txtMyemail.Text.Trim();
   message.Body = this.txtBody.Text.Trim();
   message.Subject = this.txtTitle.Text.Trim();
   string wsFile = Server.MapPath(Request.ApplicationPath) + "\\Script\\" + site + "_" + strMM + "_WS.txt";
   MailAttachment wsAt = new MailAttachment(wsFile);
   message.Attachments.Add(wsAt);
   string strMailServer = "mail.intel.com";
   SmtpMail.SmtpServer = strMailServer;
   SmtpMail.Send(message);
   Response.Write ("<script language=javascript>alert('Your email was send out successfully.')</script>");

相关文章:

  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2021-05-26
  • 2021-06-19
  • 2022-12-23
猜你喜欢
  • 2022-02-08
  • 2022-12-23
  • 2021-09-24
  • 2021-09-16
  • 2021-08-12
  • 2021-08-03
  • 2021-10-26
相关资源
相似解决方案