tags:

views:

10

answers:

1

operation time out error while sending files as attachment with size more than 2mb with e-mail(using SMTP client) in asp.net2.0

+1  A: 

It would be good if you could provide more context/info with your question, but nonetheless i will take a guess - i'm assuming you want to know "why" it's timing out, and how to resolve it.

Well it's simple, the SMTP transaction has a timeout value in ASP.NET (like most things), and you will need to change it to satisfy your needs.

You need to set the Timeout property on the SMTP object to a higher value.

More info here

The property is in milliseconds (default value is 100 seconds).

You will also need to increase the ASP.NET MaxRequestSize in the web.config.

RPM1984

related questions