且不用IIS发送。。怎么做。。

解决方案 »

  1.   

    应该要用发送组件的吧  什么比如gmail啊什么东西
      

  2.   

    用.net自带的System.Web.Mail来做吧,网上有好多例子。
      

  3.   

    系统自带的:
    MailMessage myMail=new MailMessage();
    myMail.Priority=MailPriority.High;
    myMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication 
    myMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "用户名"); //username 
    myMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "密码"); //password
    SmtpMail.SmtpServer="10.134.48.244";   //发送邮件的smtp服务器
    myMail.Subject = LocRM.GetString("Vip_Demand").ToString();   //邮件主题
    myMail.Body = MailBody;       //邮件内容
    myMail.BodyFormat = MailFormat.Html;
    myMail.From=StrFromMail;
    myMail.To =StrToMail;

    SmtpMail.Send(myMail);