Click here to Skip to main content
15,886,798 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using visual studio 3.5 and sqlserver 2008 and I want to know how to send mail when we are starting my pc.
That time mail should go weekly based.
Posted
Updated 27-Oct-10 0:46am
v2
Comments
Dalek Dave 27-Oct-10 6:46am    
Edited for Grammar.

It would be Windows Service and not web-service.

Have a look at this article to learn more on it and how to code for it: Simple Windows Service Sample[^]
Windows Services in Action I[^]

This service would keep running at the backend. Will get activated as per schedule and send mails as configured. (You need to write your email logic in it!)
 
Share this answer
 
Comments
Sandeep Mewara 27-Oct-10 7:22am    
What! 1 vote for this answer... oh great! :)
Abhijit Jana 27-Oct-10 10:22am    
I had mentioned about your 1 vote in my post as well, and I got the same :)
Sandesh M Patil 27-Oct-10 13:48pm    
5 ved you both guys. Right answer
If you want to send mail when start your PC then what is need the Web Services here ? And Why SQL Server ? I didn't see any context behind that.

I am agree with Sandeep Suggestion, Create Some Windows Services which will send mail and start it as automatic.[ Don't know why it was down voted ]

Even you can do it using a simple C# Console Application. Create a console application which will send mail and set it inside your start-up folder. That's All.

I think, your requirement is something different which you are not able to express. If this does not answer your question please rephrase your question.

Thanks !
 
Share this answer
 

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