Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Everyone,

I m a fresher in Web Development.

I want to send auto mails through my application.
It should not require any kind of btn click.

Kindly help me out.!!

Cheers..!!
Posted
Comments
Venkat_C6 9-Feb-12 5:38am    
Hi vaibhav please tell exactly when the mail should go. I think when you are going from one page to another page the mail should go by taking the details?
vaibhav mahajan 9-Feb-12 6:28am    
Hi venkat,
i dont want to send mail when any user is using the application.
it should be automatically sent from the server itself without the user intervention.
Mario Majčica 9-Feb-12 5:45am    
Based on which event?
vaibhav mahajan 9-Feb-12 6:30am    
i dont want to send mail when any user is using the application.
it should be automatically sent from the server itself without the user intervention.
Mario Majčica 9-Feb-12 6:31am    
LoL. But when? Based on which action the mail should be sent?

Based on your clarification, you need to write a windows service which queues emails and sends them at the right time. ASP.NET can't do that.
 
Share this answer
 
A simple console app is more than enough. Just schedule it on your server.

Start with this:
http://www.emailarchitect.net/easendmail/kb/csharp.aspx[^]


Here you go:
http://msdn.microsoft.com/en-us/netframework/Video/bb738102[^]

Cheers
 
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