Avensoft Help Desk
Home
Submit Service Request
Knowledge
Sign In
Knowledge Base
System.Net.Mail.SmtpException: Failure sending mail, System.IndexOutOfRangeException
nService may fail when sending emails with attachments larger than 3MB.
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 exception stack trace ---
http://stackoverflow.com/questions/2803132/net-4-0-fails-when-sending-emails-with-attachments-larger-than-3mb
The bug has been patched:
https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=30226
Article #713
Keywords:
IndexOutOfRangeException, Base64Stream, EncodeBytes
Updated On: 7/17/2012
Index
Was this article helpful?
Yes
|
No
© 2024 Avensoft
nService
| help desk software and service management software
Auto Detect Language
English (United States)
English (Canada)
English (United Kingdom)
English (Ireland)
English (New Zealand)
English (Australia)
Español (Spain)
Español (México)
Español (Argentina)
Français (France)
Français (Belgium)
Français (Canada)
German (Standard)
German (Switzerland)
Italian
Polish
Português (Brasil)
Português (Portugal)
Russian
Czech