我試圖將我們的dotnetnuke站點配置爲能夠向用戶發送基本消息(如丟失密碼,通訊等)。使用Google託管的電子郵件從hostgator上託管的dotnetnuke站點發送電子郵件
根據所有我發現我已經建立了網站頁面正常
SMTP服務器和端口的文檔:smtp.gmail.com:587
連接限制:1
最大空閒時間:0
SMTP認證:基本
SMTP用戶名:[email protected]
SMTP密碼:password
我也創造了谷歌應用程序一個SMTP中繼全面的郵件存儲。
有什麼我失蹤? 以下是我從日誌中收到的錯誤消息,如果我明白我所看到的是我使用的託管服務正確嗎?
2014-10-21 19:20:54,310 [PSS16][Thread:16][ERROR] DotNetNuke.Services.Exceptions.Exceptions - System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 74.125.198.109: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 DotNetNuke.Services.Mail.Mail.SendMailInternal(MailMessage mailMessage, String subject, String body, MailPriority priority, MailFormat bodyFormat, Encoding bodyEncoding, IEnumerable`1 attachments, String smtpServer, String smtpAuthentication, String smtpUsername, String smtpPassword, Boolean smtpEnableSSL)
我也使用過這些設置,有沒有什麼你必須在谷歌端做,使其工作? – Sean 2014-10-10 14:37:20
不是我記得:( – 2014-10-10 17:47:45
我似乎記得添加設置到我的DNS也許嗎?我會檢查 – 2014-10-10 17:48:13