Article ID: 2183292 - Last Review: August 24, 2010 - Revision: 2.0 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
On This PageSYMPTOMSConsider the following scenario:
Failure sending mail. Index was outside the bounds of the array. RESOLUTIONHotfix informationA supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.To resolve this problem, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft website: http://support.microsoft.com/contactus/?ws=support
(http://support.microsoft.com/contactus/?ws=support)
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.Note To download this hotfix, you can also visit the following Microsoft website: https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=30226
(https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=30226)
PrerequisitesYou must have .NET Framework 4.0 installed to apply this hotfix.Restart requirementYou do not have to restart the computer after you apply this hotfix if no affected file is being used.Hotfix replacement informationThis hotfix does not replace any other hotfixes.File informationThe English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.File information for all x86-based versions of Windows XP, of Windows Server 2003, of Windows Vista, of Windows Server 2008, of Windows 7, and of Windows Server 2008 R2Collapse this table
File information for all x64-based versions of Windows XP, of Windows Server 2003, of Windows Vista, of Windows Server 2008, of Windows 7, and of Windows Server 2008 R2Collapse this table
File information for all IA-64-based versions of Windows XP, of Windows Server 2003, of Windows Vista, of Windows Server 2008, of Windows 7, and of Windows Server 2008 R2Collapse this table
WORKAROUNDTo work around this issue, use one of the following methods:
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. REFERENCESFor more information about the SmtpClient class, visit the following Microsoft Developer Network (MSDN) website: General information about the "SmtpClient" class
(http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx )
For more information about the TransferEncoding property, visit the following MSDN website:General information about the "TransferEncoding" property
(http://msdn.microsoft.com/en-us/library/system.net.mime.transferencoding.aspx
)
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:824684
(http://support.microsoft.com/kb/824684/
)
Description of the standard terminology that is used to describe Microsoft software updates MORE INFORMATIONTo reproduce this issue, run the following code:
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
