Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I develop system that monitoring an equipment that has 3 categories which is A , B and C. There are three main status for the equipment which is Offline , Idle and Online . Then i created another website for user who want to receive and email notification for offline equipment based on their selection A B or C when their registered earlier.

I'm using Oracle Database , ASP.Net for development

How to send email to many user that subscribe when equipment change to offline?
Is Stored Procedure is good to use for this one?
Any example can help on?
Posted
v2

1 solution

So, you can code a console application to send mails and add that as a Windows Task Scheduler.

In the scheduler, at a predefined time of the day or week (or according to your requirements), the code will check the status of those entities and send mails to the registered users.

Makes sense? Revert back with queries, if you have any.
 
Share this answer
 
Comments
apert88 4-Dec-15 1:36am    
is it not like that , When the Equipment change to Offline only then the notification email will send to those who subscribe. sorry my bad english mr Tadit Dash
Okay, then use triggers and send from database. That is a good option.
apert88 4-Dec-15 1:58am    
That mean use trigger (Detect if any changed to particular equipment)?
how about sending an email ? how do i gather all email and how do i put some equipment on body email . Any help sample, idea or whatever very appreciated .
Yes inside trigger, you should retrieve the data you need to send as email.

For email sending, refer - Email From Oracle PL/SQL.
apert88 4-Dec-15 2:21am    
Thank so Much Mr Tadit

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