我使用Orchard 1.10.1
。提交包含发送电子邮件活动的表单后,我在AppData/Logs
中收到此错误。在Orchard CMS提交表单时无法发送电子邮件
2016-12-01 10:39:07,242 [11] Orchard.Email.Services.SmtpMessageChannel -
Default - Could not send email [http://yxyxyx.com/Orchard.DynamicForms/Form/Submit]
System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A socket operation was attempted to an unreachable network [2a00:1450:400c:c04::6d]:587
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)
--- End of inner exception 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)
--- End of inner exception stack trace ---
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at Orchard.Email.Services.SmtpMessageChannel.Process(IDictionary`2 parameters)
我应该如何解决这个问题?
---------更新---------
检查您的邮件服务器SSL端口是否为587! – mdameer
尝试使用默认端口号25.如果这不起作用,请解释您获取配置数据的位置。文档说QMail默认监听端口25。 – ViRuSTriNiTy