Skip to main content
Inspiring
October 15, 2008
Answered

Cfmail attachment failing at 7Mb

  • October 15, 2008
  • 1 reply
  • 980 views
I have an app where users can upload files that get attached to an email message. Whenever the file size exceeds 7Mb in my testing, the mail fails, goes into the Undelivr directory and the mail.log shows:"IOException while sending message." The exception.log shows: "javax.mail.MessagingException: IOException while sending message; nested exception is: java.net.SocketException: Software caused connection abort: socket write error"

The file was successfully uploaded and exists as specified on the cfmailparam tag.

Any ideas?


This topic has been closed for replies.
Correct answer mooresm
Thanks for pointing me in the right direction. Using SMTP in Windows 2003 Server. Property "Limit session size to (KB)" was set to 10240. After unchecking this box, all large attachments going through.

1 reply

tclaremont
Inspiring
October 16, 2008
What mail server are you using. Are you the admin on that mail server? It is possible that there is a max limit set on the mail server to prevent people from sending ridiculously large email attachments such as this.

When it says "software caused connection abort" it could be the mail server refusing the attachment.

If the user can "upload" a file, then why arent you using the CFFILE tag with the file upload processes?
mooresmAuthorCorrect answer
Inspiring
October 16, 2008
Thanks for pointing me in the right direction. Using SMTP in Windows 2003 Server. Property "Limit session size to (KB)" was set to 10240. After unchecking this box, all large attachments going through.
Inspiring
March 17, 2023

Thanks - this helped me (15 years later!) 🙂
In case this helps anyone else, to find this setting go IIS > expand out the (local computer) option in the left panel of IIS (6) > right click on SMTP Virtual Server > properties > Messages tab > the top two tick boxes and inputs are the ones you want to lool at. HTH