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

  • SEARCH
  • Home
  • 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 9178109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:28:33+00:00 2026-06-17T17:28:33+00:00

I have Windows server with PostgreSQL database. I stored in the database employees data

  • 0

I have Windows server with PostgreSQL database. I stored in the database employees data including contract expiry date.
I would like to send an automatic email for each employee 30 days before the expiry date. (Each employee has an email account).
What is the best way to do that?
I am thinking to do the following, Could you please advise if it is the best way, and if, I need answer for the questions:

  • Build WinForm C# application doing:
  • Access PostgreSQL everyday( I know how to deal with Postgresql, but how to make it per each new day (schedule task?)?)

  • Compare machine date with all expiry date in the database

  • If the difference equals or less than 30 days, an automatic mail will
    be send to the employee. (how to send emails using C#}
  • 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-06-17T17:28:35+00:00Added an answer on June 17, 2026 at 5:28 pm

    AS @Middas proposed, writing a simple console application would take the responsibility of scheduling outside the application.

    A simple console application is OK, scheduled by either Windows Scheduler or a 3rd party scheduler would do.

    For sending emails, you could

    • use .net provided SMTPClient namespace to send emails
    • use 3rd party service like Amazon SES
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using PostgreSQL data server through VB.NET/ODBC on windows what seem's pretty reliable
I have just installed Postgresql 9.1 on windows server 2008. I was trying to
We have Windows Server 2008 as our Production server hosted in RackSpace environment. Following
I have a Windows server that is intermittently losing the ability to lookup DNS
I have a Windows server that is intermittently losing the ability to lookup DNS
I have a Windows Server 2003 64-Bit VPS, and I'm experiencing a problem with
I have a Windows Server 2003 system that is used for terminal services. We
I have three Windows Server 2003 with 2 GB RAM. Server1 tomcat 5.5.25 jvm
I have a Windows 2003 Server with IIS, I installed VisualSVN Server on it.
I have a windows 2003 server (WEb edition) which has .net 3.5 sp1 installed

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.