ssl - 肯蒂科 SMTP : use TLS instead of SSL

标签 ssl smtp kentico

我已经从我的供应商那里获得了如何连接到 POP3/SMTP 服务器的配置设置。它在 Outlook 中完美运行,但不适用于 Kentico(Azure 托管)。

注意:在 Gmail SMTP 设置(启用 SSL)的情况下,Kentico 工作完美。

在 Kentico 中,我使用以下配置(如下),但我无法调整协议(protocol)(TLS 在我的情况下很重要)和端口号 (587)。

  • smtp 服务器 - email.active24.com
  • 使用 ssl - 选中
  • 登录 - XXX@YYY.ZZZ
  • 密码 - NNN

错误(见下文)包含两条消息:

  • 消息:无法连接到远程服务器

  • 消息:无法建立连接,因为目标机器主动拒绝它 81.95.97.101:25


Message: Failure sending mail.

Exception type: System.Net.Mail.SmtpException
Stack trace: 
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at CMS.EmailEngine.EmailProvider.SendEmailInternal(String siteName, MailMessage message, SMTPServerInfo smtpServer)
at CMS.EmailEngine.EmailSender.SendTestEmail(String siteName, EmailMessage message, SMTPServerInfo smtpServer)
at CMSModules_System_System_Email.SendEmail() in C:\Projects\Kentico\_install\CMS\CMSModules\System\System_Email.aspx.cs:line 122
at CMSModules_System_System_Email.btnSend_Click(Object sender, EventArgs e) in C:\Projects\Kentico\_install\CMS\CMSModules\System\System_Email.aspx.cs:line 78

Message: Unable to connect to the remote server

Exception type: System.Net.WebException
Stack trace: 
at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6)
at System.Net.PooledStream.Activate(Object owningObject, Boolean async, GeneralAsyncDelegate asyncCallback)
at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback)
at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout)
at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint)
at System.Net.Mail.SmtpTransport.GetConnection(ServicePoint servicePoint)
at System.Net.Mail.SmtpClient.GetConnection()
at System.Net.Mail.SmtpClient.Send(MailMessage message)

Message: No connection could be made because the target machine actively refused it 81.95.97.101:25

Exception type: System.Net.Sockets.SocketException
Stack trace: 
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)

我需要设置以下配置:

enter image description here

请建议我该怎么做。

最佳答案

正确的答案是将 smtp 服务器名称与端口号一起使用,例如:

email.active24.com:587

关于ssl - 肯蒂科 SMTP : use TLS instead of SSL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52513823/

相关文章:

Javascript - 当页面使用 SSL 时复选框不起作用(使用 Kentico CMS)

Perl LWP:为什么 IO::Socket::SSL 使用 TLS 1.0,而 Net::SSL 使用 TLS 1.2?

ssl - 在 TFS Webhook 中使用 TLS 1.2

ssl - Composer 完全禁用https

node.js - 使用nodemailer发送邮件

android - 发送电子邮件 Delphi XE5

python - 邮件未发送给 CC 中的人员

c# - 使用注册到 BizFormItemEvent 的方法设置 Kentico BizForm 的错误消息

c# - 如何查看从MySql数据库到SQL Server Kentico的数据?

ssl - curl 无法识别 subjectAltName