我寫了一個簡單的應用程序通過GMail SMTP服務器發送電子郵件。但是,它在運行時返回一個異常。 在我的工作場所gmail被封鎖(無法訪問gmail.com)。是因爲這個錯誤嗎?這個錯誤是因爲GMail被封鎖了嗎?
System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebExceptio n: Unable to connect to the remote server ---> System.Net.Sockets.SocketExceptio n: A connection attempt failed because the connected party did not properly resp ond after a period of time, or established connection failed because connected h ost has failed to respond 74.125.113.109:587
gotcha。謝謝。 – xbonez 2010-11-17 15:54:49