Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

Which is the best method to send emails in background in ASP.NET ?



Thanks in Advance


Regards
Abdul Qayyum
Posted
Comments
[no name] 30-Jul-15 9:14am    
You don't. You use a windows service or a scheduled task to do this, not a web page.
Afzaal Ahmad Zeeshan 30-Jul-15 9:39am    
Send a request using ajax. That would be in background. Google for a good result for that.
Rajesh Buddaraju 30-Jul-15 14:59pm    
You may use a background worker and schedule the method using timer intervals. Using Ajax you can use a timer control or using the traditional approach you can run a method in set of intervals.

For timer Control you can find below link.
http://ajax.net-tutorials.com/controls/timer-control/

Use Asp.net Mail classes to send mails
_AQ 31-Jul-15 1:14am    
Thanks for suggestions :)

1 solution

Google "asp.net send email" and you'll find lots of examples. Please do basic research before asking a question.
 
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