Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
how to send an auto email alert, windows service application with c# in which email ids are taken from database with the help of SQL query....Plz help me out..

Thank YOu!!1
Posted
Comments
Kishor Deshpande 1-Feb-13 6:05am    
You want to send mail on specific events right?
Bhaskar Dhone 1-Feb-13 6:07am    
yeah..
Bhaskar Dhone 1-Feb-13 6:15am    
Thanks kishor...looking at link i guess it will help..but on more how to get email ids to which i want to send email form SQL database with the help of query and send them one by one automatically...
Kishor Deshpande 1-Feb-13 6:13am    
Link 1 updated with simple Example from other site, please refer it.
Bhaskar Dhone 1-Feb-13 6:19am    
ok..

1 solution

Please refer links:
Link1
Link2
I would suggest you to use this code and create a custom DLL called Utilities define a method SendMail().
Call the SendMail(to, from, subject,message) whenever you wish to send email to user.
If you have any question, please ask.

Thanks.
 
Share this answer
 
v3

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