Click here to Skip to main content
15,894,223 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai
How to increase the size of attachment file in smpt mail transfer in asp.net.i can send up to 3 or 4 mb file,but if the size is more than 6 or 7 mb it not send mail and it show error like
"Failure sending mail".so i need to increase the size of the file.

Regards
Aravind
Posted
Comments
Sergey Alexandrovich Kryukov 15-Aug-13 13:00pm    
Do you have the access to the server settings? If not, you cannot change anything like that.
—SA
Aravindba 15-Aug-13 21:27pm    
Thank for ur reply SA, i am using gmail smpt,so what the is the size of attachment in gamil in ordinary mail send and recive in gmail account,i think it will 20mb or 30 mb,so why i cant upload more than 3 mb in using smpt server settings ?

--BA

1 solution

This is a hole in .Net Framework 4. You can apply a patch from the link:
https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=30226

and your problem might get solved. Mark it as answer if your problem is solved by this.
 
Share this answer
 
Comments
Aravindba 15-Aug-13 19:59pm    
form that link 3 files are not support to my system,my system is windows 7 64 bit SP1,and what purpose of that link ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900