2016-01-21 196 views
-4

我使用System.Net.MailNamespace在c#中用於從服務器發送電子郵件。System.Net.Mail.SmtpException:系統存儲不足

但是,如果只有一個郵件列表的地址的電子郵件,以飽和接觸信息和無法接收更多的消息我有這樣的錯誤:

System.Net.Mail.SmtpException: Insufficient system storage. The server response was: 4.3.1 Insufficient system resources

我已經閱讀沒有成功谷歌太多的技巧,因爲這個錯誤發生時:

  1. 交換服務器磁盤空間不足。
  2. 收件人郵箱磁盤空間不足。

而且我無法檢查電子郵件服務器狀態。

如何解決這個問題?

請幫助我,謝謝你提前。

回答

0
try { 
    s.Send(m); 

} catch (SmtpException ex) { 
    if (ex.StatusCode == SmtpStatusCode.InsufficientStorage) { 
     //Send again to ensure this email gets sent 
     s.Send(m); 
    } else { 
     //Handle other SMTP errors here. 
     Response.Write("Error: " + ex.Message); 
    } 
} 

Reference link