Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 866989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:54:05+00:00 2026-05-15T09:54:05+00:00

I have to add e-mail notifications to a client server application. Notifications happen as

  • 0

I have to add e-mail notifications to a client server application.

Notifications happen as the user do some particular action on the client UI.

If I had a middle tier or a service running at server I can imagine how to do it:

1) I simply create a DB tables with “pending notifications”

2) as a user does an action that generates a notification I add a record to the table

3) serverside I would continuously try to send those mails and removing them from the table once sending is succesful

Now I cannot do this now, I have a plan to add a service later on, but for now I must go the quick and dirty way.

So somehow what I was thinking to is to implement something like this:

1) as a notify-worth event occurs at client, the same client (my exe) tries to send the notification, upon failure it will log the notification in the “pending notifications” table (failure can be becuase lack of internet connection or any other problem)

2) I add a Timer that will work from any client machine to check for pending notifications. If there are any the client will try to send the e-mail (using a transaction: I will mark a field as “TryngToSendFromClientX” and in case of failure I will reset that field to NULL)

I think this approach would work, it has obvious limitations (if after failure no one logs into the system, no notification will be sent – same would be if service goes “down”). But can you comment on this approach and suggest a better one?

Additional notes (to better understand the scenario):

a) Note: all notifications are sent from the same e-mail account.

b) I don’t need to keep track of who sent the e-mail.

c) the problem of creating the service now is that it will basically complicate significantly deployment and I need to create tools for monitoring the status of the service. Something that I will do in future but not now, in future I have plan to add more functionality (not only sending notifications) to the service, so in that case it makes more sense to create it.

d) I will send e-mails by using Indy components and SMTP server.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T09:54:06+00:00Added an answer on May 15, 2026 at 9:54 am

    If you are not willing to create the service now, I think you are stuck with the scenario you describe. There are some things though you could do to circumvent the problem of no user firing up the client anymore while there are still pending messages.

    You could add a commandline utility (or commandline parameter as bepe4711 suggested) that will only check for pending messages and try to send them.

    Add this commandline utility to the StartUp folder or Run key in the registry. This way messages will at least get sent when the computer restarts, even if the user does not fire up the your app.

    Add a scheduled task to run this utility at least once every day. The scheduled task can be added by code or by your installer.

    If you do both, you will only have to worry about pending messages of users that never start their computer again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.