Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
In my application I have the mass mailing functionality. The mass mail consist of around thousand mailids and I have implemented the mass mailing using a for loop.It means that mails are sent one by one.It takes around 5 minutes to send 1000 mails and till it finish sending those mail my application is halted and I cant perform any other functionality. Can anyone suggest a simple solution using threading so that the mails are sent in the background and I can perform other actions in the mean time.
Posted
Updated 9-Feb-16 0:50am
v2

1 solution

I googled "asp.net send email background thread" and here are some results

How to send email Asynchronously in ASP.Net using Background Thread[^]

http://www.advancesharp.com/blog/1107/send-email-in-background-thread-in-c-aps-net[^]

How to use Threading or Async to send Bulk Mail in ASP.NET[^]

If you google yourself you'll find many more if none of those take your fancy.
 
Share this answer
 
v2

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