MailMessage怎么用啊
大家帮个忙啊

解决方案 »

  1.   

    System.Web.Mail.MailMessage  Mailer = new System.Web.Mail.MailMessage();
    Mailer.From = "[email protected]";
    Mailer.To = "[email protected]";
    Mailer.Subject ="发送测试";
    Mailer.Body= "11111111111111111111111111111";
    Mailer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
    Mailer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "xxx");
    Mailer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "xxxx");
    SmtpMail.SmtpServer = "smtp.sina.com.cn";
    SmtpMail.Send(Mailer);
      

  2.   

    Mailer.Fields是干什么的 啊
    一种邮件只能使一种邮件的服务smtp.sina.com.cn吗
    163.21cn的换个名就可以吗
      

  3.   

    http://www.codeproject.com/useritems/SendMailUsingGmailAccount.asp
    更多的内容看,
    http://systemwebmail.com/
    http://www.systemnetmail.com/