如何将我的.net框架升级到4.0到4.5用于发送邮件 [英] how to upgrading my .net framework to 4.0 to 4.5 for seding mail

查看:127
本文介绍了如何将我的.net框架升级到4.0到4.5用于发送邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,







如何更新我的.net框架4.0 visual stdio 2010 ultimate到.net

4.5 visual stdio 2012



System.Net.Mail.SmtpException:发送邮件失败。 ---> System.IndexOutOfRangeException:索引超出了数组的范围。在System.Net.Base64Stream.EncodeBytes(Byte [] buffer,Int32 offset,Int32 count,Boolean dontDeferFinalBytes,Boolean shouldAppendSpaceToCRLF)System.Net.Base64Stream.Write(Byte [] buffer,Int32 offset,Int32 count)at System.Net System.Net.Mail.SmtpClient上的System.Net.Mail.Message.Send(BaseWriter writer,Boolean sendEnvelope)上的System.Net.Mime.MimeMultiPart.Send(BaseWriter writer)中的.Mime.MimePart.Send(BaseWriter writer)。发送(MailMessage消息)---结束内部exc

解决方案

这是修复 - FIX:发送邮件失败当您使用基于.NET Framework 4.0的应用程序发送电子邮件时,如果使用System.Net.Mail.SmtpClient类电子邮件附件大于3 MB [ ^ ]。

Hello,



how can i update my .net framework 4.0 visual stdio 2010 ultimate to .net
4.5 visual stdio 2012

System.Net.Mail.SmtpException: Failure sending mail. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. at System.Net.Base64Stream.EncodeBytes(Byte[] buffer, Int32 offset, Int32 count, Boolean dontDeferFinalBytes, Boolean shouldAppendSpaceToCRLF) at System.Net.Base64Stream.Write(Byte[] buffer, Int32 offset, Int32 count) at System.Net.Mime.MimePart.Send(BaseWriter writer) at System.Net.Mime.MimeMultiPart.Send(BaseWriter writer) at System.Net.Mail.Message.Send(BaseWriter writer, Boolean sendEnvelope) at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exc

解决方案

Here is the fix - FIX: "Failure sending mail" error message when you send an email message by using a .NET Framework 4.0-based application that uses the "System.Net.Mail.SmtpClient" class if the email attachment is larger than 3 MB[^].


这篇关于如何将我的.net框架升级到4.0到4.5用于发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆