Results 1 to 3 of 3

Thread: Initiating an action on another program

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2008
    Posts
    263

    Initiating an action on another program

    Hi, I've designed an Order Entry System and now I'd like to send an email when an Order has been saved to the Database. I could probably do it from the client machine pretty well, but really what I was looking for was to inform another program running on the server that an Order has been saved into the database with OrderID:xyz. And have that program take care of sending the email. I have no problem designing this second program, in terms of the basics of responding to an event and sending an email. But my question is: how do I raise an event across the network that this other program will respond to?

    Thanks,
    Jerome

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: Initiating an action on another program

    Create a new table in the database to track emails that need to be sent. Then your second app monitors that table and sends an email when new rows show up. It then marks those rows as being sent.

    This helps you out if for some reason the email process is down, when it comes back up, it will start sending the emails again.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2008
    Posts
    263

    Re: Initiating an action on another program

    negative0,

    Thanks for the suggestion. Sounds like probably the simplest solution.

    -Jerome

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width