写一个邮件发送系统,如何安装smtp服务?? 我用的是win7....
安装配置好了Microsoft Outlook还要装smtp服务么?非常感谢.........

解决方案 »

  1.   

    不用安装smtp也可以,网上有很多发邮件的软件。我这里也有一个,可参考一下。
    用qq邮箱发送比较好。
    http://blog.csdn.net/sxldfang/archive/2010/06/14/5670859.aspx
      

  2.   

    发送方法很多如jmail
    http://topic.csdn.net/u/20100608/17/600dbc8d-2e29-4856-9d22-70f9e843747b.html
      

  3.   

    安装IIS的时候,把stmp也选中就是了。使用程序,不用安装stmp和outlook
    public void SendMail(string mailContent, string toMailAddress)
            {
                try
                {                MailMessage mail = new MailMessage();
                    mail.BodyFormat = MailFormat.Html;
                    mail.To = 收件人地址;
                    mail.Subject = 主题;                mail.Body =内容;                mail.BodyEncoding = Encoding.GetEncoding("GB2312");
                    
                    mail.From =发送人邮件地址;
                    mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication
                    mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", ht["username"].ToString()); //set your username here
                    mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", ht["password"].ToString()); //set your password here
                    SmtpMail.SmtpServer = ht["host"].ToString();//mail server
                    SmtpMail.Send(mail);
                }
                catch { }        }