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

错误:

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

转载于:https://www.cnblogs.com/liuzhendong/archive/2011/04/22/2025098.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值