Exceeded storage allocation. The server response was: 4.3.1 Message size exceeds fixed maximum message size

错误:

System.Net.Mail.SmtpException: Exceeded storage allocation. The server response was: 4.3.1 Message size exceeds fixed maximum message size
   at System.Net.Mail.DataStopCommand.CheckResponse(SmtpStatusCode statusCode, String serverResponse)
   at System.Net.Mail.SmtpConnection.OnClose(Object sender, EventArgs args)
   at System.Net.ClosableStream.Close()
   at System.Net.Mail.MailWriter.Close()
   at System.Net.Mail.SmtpClient.Send(MailMessage message)

 

Google翻译后是:超出存储分配。服务器响应为:4.3.1消息大小固定的最大邮件大小超过

 

措施:这是邮件带的附件太大造成超过IIS Smtp最大限制,默认是2048k。

         压缩邮件附件应该是正确的选择。

参考:

http://www.codeproject.com/KB/winsdk/ConfigServerSmtp.aspx
Config the Server SMTP IIS to send Mail

http://www.tech-faq.com/understanding-and-managing-smtp-virtual-servers.html
Understanding and Managing SMTP Virtual Servers

http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/8dfb6aae-ebb0-40f9-a8c4-f47c45fd7507/
Size exceed problem in ssis package when sending with the help of SMTP

posted on 2011-04-22 17:18  BobLiu  阅读(1985)  评论(0编辑  收藏  举报