ASP.Net and C# - automatic e-mail sending

Asked

Viewed 839 times

2

On the site I took over from a client, developed in ASP.Net with C#, there are registered employees with a defined admission date. The registration of these employees is in an SQL Server 2008 database table.

I needed to create something (maybe a task) that would check whether there are 45-day users since their date of admission. Possibly a SELECT query in the bank. If it exists, an automatic email is sent to(s) due to(s) user(s) warning that they must complete a self-assessment.

How can I do that? ASP.Net has something to that effect?

  • You can create a "Service" project on C# and install it on the server to run routines from time to time. Or simply place a scheduled task on the server to be executed every day at specific times, and within that software you send emails and queries in the database.

1 answer

6


  • Great, I didn’t know you had this feature, da para usar com webforms ou só mvc?

  • 2

    You can use it with Webforms.

  • Dude, can I specify a time? Like I needed every day at 8:00 in the morning my server to perform a task, but I couldn’t find how to do this with Hangfire

Browser other questions tagged

You are not signed in. Login or sign up in order to post.