attach upto 10 Mb file in email sending in c#.net.

Posted by Winodjadhav under C# on 6/30/2011 | Points: 10 | Views : 2484 | Status : [Member] | Replies : 2
How to attach upto 10 Mb file in email sending to person in windows application created in c#.net.




Responses

Posted by: Vuyiswamb on: 6/30/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
The same approch that is used for web you can use it , i am just worried about that 10mb, i think you need to zip it.
http://www.dotnetfunda.com/articles/article747-how-to-send-an-email-using-gmail-in-aspnet-.aspx

Thank you for posting at Dotnetfunda
[Administrator]

Winodjadhav, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kunalverma31 on: 8/12/2011 [Member] Starter | Points: 25

Up
0
Down
Try to increase httpRuntime maxRequestLength in web.config eg: for 20MB <httpRuntime maxRequestLength="20480"/>, same worked for me.

Winodjadhav, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response