Skip to content

A background service that periodically sends emails to entered email addresses.

License

Notifications You must be signed in to change notification settings

Cihat-Girgin/.NET-Core-Background-Service-Usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.NET-Core-Background-Service-Usage

A background service that periodically sends emails to entered email addresses.

mail-screen

Installation

You should add current email info in SendMail function in PeriodicSendMailService. No database configuration is required as the EF Core In Memory package is used.

mail-edit

Background service send email to all addresses in memory at every 30 second. You can edit period for your scenario.

while(!stoppingToken.IsCancellationRequested)
            {
                SendMail();
                Console.WriteLine("Mails sent.");
                await Task.Delay(30000, stoppingToken);
            }

About

A background service that periodically sends emails to entered email addresses.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published