Link to home
Start Free TrialLog in
Avatar of philip_doherty
philip_doherty

asked on

ASP.NET Email Queue

Hi,

I need to send out quite a few different emails every day from an asp.net web application.

Does anyone have any ideas how I can queue up these emails so I dont get blacklisted?

Thanks
Avatar of techExtreme
techExtreme
Flag of India image

If your problem lies in getting blacklisted if you are sending lot of emails in say few minutes straight, then MSMQ can solve your problem. Go thru this article:

http://www.codeproject.com/KB/cs/Sending_Newsletters.aspx

It basically uses messaging queue for the same and once you program it correctly, your asp.net web application will not need to wait for the mail to be delivered, instead it just submits to the queue (which takes very less time than email code in c#)  and then can continue with its work.

The article sends newsletters but you can just put in anything that you want.


Avatar of philip_doherty
philip_doherty

ASKER

Hi,

How often does this send out an email, I dont see any timing code. Also can I use this from a shared hosting provider as I dont have access to the machine smtp client only my 3rd party email?

Ta
ASKER CERTIFIED SOLUTION
Avatar of Ajay Sharma
Ajay Sharma
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Using MSMQ you can time it say start sending it every 5 minutes or so. It will basically call your code and it is upto the code what to do next.

No, if you do not have access to the server , you can't setup MSMQ. You atleast need a virtual private server or sort of where you can setup MSMQ. Once it is setup, its a breeze to send out emails.
But if you are using 3rd party hosting that doesn't provide this , you need to look for another alternative.
its a b cos it was 'good' not 'excellent'.

why does everything need to be an 'A'!!!!!!!!!