c# - How can I make a service that send mails every 5 minutes? -


hy,

i have c# program sends emails gmail smtp server , want make service or running behind sends emails every 5 minutes.

does have idea how can make c# , asp.net?

two options spring mind:

  1. write windows service. kick off timer triggers every 5 minutes, , work there.

  2. set windows scheduled task ("task scheduler" in vista/win7) trigger every 5 minutes , launch application.

i'd tend towards latter. windows services easy set up, nothing's simpler no code @ all.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -