按照用户输入的邮件地址给用户发送邮件!!
   最好给个示范!!嘿嘿

解决方案 »

  1.   

    public static bool SendMail(string mailServer,string sMsg,string toAddress,string fromAddress,string subject)
    {
    MailMessage msgMail = new MailMessage();
    msgMail.From= fromAddress;
                        msgMail.To= toEAddress;
    msgMail.Subject = subject;
    msgMail.BodyFormat =MailFormat.Text;
    msgMail.Body = sMsg; bool b = false;
    try
    {
    SmtpMail.SmtpServer = mailServer;
    SmtpMail.Send(msgMail);
    b = true;
    }
    catch (Exception ex)
    {
    Tools.WriteLog("OSS",ex.Message+ex.StackTrace,System.Diagnostics.EventLogEntryType.Error);
    }
    return b;
    }
      

  2.   

    http://www.cnblogs.com/goody9807/archive/2005/03/09/115367.html
      

  3.   

    谢了,不过都是什么意思啊?
     yuezhong(妈咪,有小姐吗?便宜点的) 
    来点注释阿
    嘿嘿