公司 内网邮件系统发送。 使用OUTLOOK 可以发送
SSL/TLS 都没有开 SMTP 端口默认的25OUTLOOK 这样设置可以发送。。
可是程序里面 
报错
服务不可用,正在关闭传输信道。 服务器响应为: Cannot establish SSL with SMTP server 192.168.0.4:465, SSL_connect error 1:error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

解决方案 »

  1.   

    为什么提示 465端口呢?  邮件服务器 服务端没有开启SSL 465呀
      

  2.   

    smtp有个BUG。如果计算机名称为汉字有时候会发不出去。
    不知道2.0之后的版本改过没有。
      

  3.   


                client.Host = "192.168.0.4";
                client.Port = 25;
                client.EnableSsl = false;
      

  4.   

    我当时也用smtp做了一个邮件发送的,对各个邮件服务器都可以发送
      

  5.   

    你发送邮件的帐号和密码呢 貌似没有发现啊下面我这用的发送邮件代码public static bool SendNetMail(string fromEmail, string fromName, string toEmail, string serverName, string serverPwd, string subject, string body, string SMTP, string filePath)
            {
                MailMessage message = new MailMessage(fromEmail, toEmail);
                message.Subject = subject;
                message.Body = body;
                message.IsBodyHtml = true;
                message.SubjectEncoding = System.Text.Encoding.Default;
                message.BodyEncoding = System.Text.Encoding.Default;
                SmtpClient client = new SmtpClient("192.168.xxx", 25);
                message.Headers.Add("X-Priority", "3");
                message.Headers.Add("X-MSMail-Priority", "Normal");
                message.Headers.Add("X-Mailer", "Microsoft Outlook Express 6.00.2900.2869");
                message.Headers.Add("X-MimeOLE", "Produced By Microsoft MimeOLE V6.00.2900.2869");
                message.Headers.Add("ReturnReceipt", "1");
               
                client.UseDefaultCredentials = true;
                client.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network;
                client.Credentials = new System.Net.NetworkCredential(serverName, serverPwd);
                try
                {
                    client.Send(message);
                    return true;
                }
                catch (Exception ex)
                {
                    return false;
                }
            }
      

  6.   

    你的host属性设置成“192.168.0.4”,are you sure?
      

  7.   

    邮件的我也做过,但是不敢确定你错在哪里,不过我知道host设置成这样,肯定不行,你去网上看看人家是怎么做的