错误:

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

相关文章:

  • 2022-12-23
  • 2021-11-10
  • 2022-03-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-08
  • 2021-11-22
  • 2021-05-19
  • 2021-07-31
  • 2021-09-24
  • 2022-01-02
  • 2021-07-14
相关资源
相似解决方案