Email in asp.net, Happy new year to every body [Resolved]

Posted by Sathya4260 under ASP.NET on 12/31/2010 | Points: 10 | Views : 4099 | Status : [Member] | Replies : 5
Hi everybody,

Can any one explain or give the coding to send an email in asp.net with attaching the selected file(file upload or file from sql server).

It would be better if you assist step by step..

Happy new year to every body...

Let we play with C#,asp.net coding thought out the forth coming years...

enjoy coding....

Sathish Kumar S


Responses

Posted by: SheoNarayan on: 12/31/2010 [Administrator] HonoraryPlatinum | Points: 50

Up
0
Down

Resolved
Hi Sathya,

Wish you a very happy new year 2011!

I have written an article especially for you this morning http://www.dotnetfunda.com/articles/article1106-sending-email-in-aspnet-with-attachment-.aspx

Hope this will help.

Regards,
Sheo Narayan
http://www.dotnetfunda.com

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

Posted by: Sathya4260 on: 1/3/2011 [Member] Starter | Points: 25

Up
0
Down
Thanks for ur response, and it nice to read an short and nice article which makes clear....

Sathish Kumar S

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

Posted by: Karthikanbarasan on: 1/5/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

The below article gives example in both vb.net and C#.net

http://forums.asp.net/t/971802.aspx

Thanks
Karthik
www.f5Debug.net

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

Posted by: Gokul on: 3/8/2011 [Member] Starter | Points: 25

Up
0
Down
Good work ... Made to understand the coding easy since being a simple coding. Keep doing the same gud job.





Thanks and Regards,
GokulNath Nithy.

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

Posted by: Msomar on: 7/31/2011 [Member] Starter | Points: 25

Up
0
Down
Hi, SheoNarayan
I got this error



Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1674: 'System.Net.Mail.SmtpClient': type used in a using statement must be implicitly convertible to 'System.IDisposable'

Source Error:



Line 31: try
Line 32: {
Line 33: using (SmtpClient smtpClient = new SmtpClient())





Plese help me.

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

Login to post response