0

从下面的代码我需要替换

SmtpMail.SmtpServer = "localhost"SmtpMail.SmtpServer = ConfigurationManager.AppSettings["SmtpServer"]

 Public Shared Sub SendMailHTML(ToAdd As Object, FromAdd As Object, Message As Object,     Subject As Object)
  Dim msgMail As MailMessage = New MailMessage()
  msgMail.[To] = Conversions.ToString(ToAdd)
  msgMail.From = Conversions.ToString(FromAdd)
  msgMail.Subject = Conversions.ToString(Subject)
  msgMail.Headers.Add("X-Mailer", "ASP.NET")
  msgMail.BodyFormat = MailFormat.Html
  msgMail.Body = Conversions.ToString(Message)
  SmtpMail.SmtpServer = "localhost"
  SmtpMail.Send(msgMail)
 End Sub

我无法访问汇编代码,只能访问已编译的文件。我也尝试过使用不同的反编译器反编译和重新编译程序集,但错误太多。只是想知道我们是否可以创建一个新文件并覆盖它

4

0 回答 0