Sending bulk notification emails without blocking

Posted by FreshCode on Stack Overflow See other posts from Stack Overflow or by FreshCode
Published on 2011-01-14T10:40:17Z Indexed on 2011/01/14 10:53 UTC
Read the original article Hit count: 221

Filed under:
|
|
|

For my client's custom-built CRM, I want users (technicians) to be notified of changes to marked cases via email.

This warrants a simple subscription mapping table between users and cases and automated emails to be sent every time a change is made to a case from within the logging method.

How do I send 10-100 emails to subscribed users without bogging down my logging method? My SMTP server is on a peer on my LAN, so sends should be quick, but ideally this should be handled by an external queuing process.

I can have a cron job send any outstanding emails every 10 minutes, but for this specific client cases are quite time-sensitive and instant notification (as instant as email can be) would be great.

How can I send bulk notification emails from within ASP.NET MVC without bogging down my logging method?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about email