Background worker application to send emails