I have a SQL Server database which is shared between several ASP.NET (VB.NET) websites, the database has a table which stores customer enquiries - I wish to provide email notifications informing of new enquiries to relevent people within the organisation (and possibly put some of the enquiry data into the body of the email). Please could someone outline my options in terms of how this could be implemented?
My thoughts are:
- SQLMail
- Database Mail
- VB.NET Stored Procedure using System.Net.Mail library?
- Other options?
Option 3 seems desirable because I know how to do this in VB.NET and it is trivial.
- What are my other options?
- What are the caveats?
- Can I do this in real-time i.e. a trigger (the volume of inserts is low)?
- or is it vital that this is done in a batch i.e. a job?
Any help very welcome! Thanks.