- 我的配置文件除連接字符串外完全相同。
- 我使用兩臺機器
- 我高架IIS用戶在服務器上的IIS以確保它不是一個權限問題
- 沒有異常拋出我的服務器上,其中電子郵件不會被髮送
- 我知道gmail配置是正確的,因爲我可以從我的開發箱發送電子郵件。
Windows防火牆關閉,網絡防火牆未阻塞出站端口。我錯過了什麼?我的應用程序可以通過我的開發箱上的gmail發送電子郵件,但不在我的服務器上
我應該注意些什麼呢?
IIS 7 Win2k8,使用ASP.NET W/C#
SmtpClient smtpClient = new SmtpClient();
smtpClient.EnableSsl = true;
smtpClient.Send(fromAddress, toAddress, subject, body);
哪個IIS版本,什麼語言/ framwork? ASP,.NET,PHP?你用什麼組件發送郵件? – Kev 2009-12-09 19:06:40
添加到上面的文本 – drewburlingame 2009-12-09 21:54:09