Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending attachments of greater size asp.net

i have developed one windows (desktop) based application which sends pdf as an attachments. the size of pds could range from 40 KB to 10-15 MB. But when i send an pdf more than 2.5 MB the file is never reaching the destination.

I try sending the file at our intranet as well popular internet (such as gmail, yahoo) email address but no luck!

Also i cross checked in SMTP Server. No such limitations has been imposed therein.

My code is in Asp.net 2.0 and C#.

let me know if more details required.

thanks a ton!

like image 280
xorpower Avatar asked Nov 29 '25 03:11

xorpower


1 Answers

Try with below code

SmtpClient.Timeout value.

the default value is 100 seconds = 100000.

or check out this link

http://forums.asp.net/t/1402417.aspx/1

like image 116
sikender Avatar answered Nov 30 '25 16:11

sikender



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!