考微软社区的一篇文章,介绍了三种不同方法.在.NET中使用SMTP发送邮件
http://www.microsoft.com/china/community/article.asp?oBODY=TechZone/TechArticle/TechDoc/sendmail&oXSLT=TechZone/TechArticle/TechContent本文简单介绍了SMTP协议(RFC2554)发送邮件的过程,并讨论了在 .NET 中使用SMTP发送邮件由简到繁的三种不同方案、各自可能遇到的问题及其解决办法。

解决方案 »

  1.   

    轻松发送emailSend E-mail With VB.net
    Description:
    This is a rudimentary example of how to send an e-mail message using VB.netInstructions:
    Add a reference to System.web.dll from the .Net components by right-clicking References in the solution explorer.
    Dim Message As New System.Web.Mail.MailMessage()
    'Recipient's name and e-mail address
    Message.To = "Your Name <[email protected]>"
    'Your name and e-mail address
    Message.From = "Recipient Name <[email protected]>"
    Message.Body = "Test message text"
    Message.Subject = "A Test"
    'Your smtp server
    System.Web.Mail.SmtpMail.SmtpServer = "your.smtpserver.com"
    System.Web.Mail.SmtpMail.Send(Message)
    关于win 2k & xp中的smtp服务,请参考以下文章:How to Configure the IIS SMTP Service to Relay SMTP Mailhttp://support.microsoft.com/default.aspx?scid=kb;en-us;230235