Using MediatR with Hangfire to pass requests that can be processed in the background jobs

I need to move this email sending task out of the HTTP process and run it in the background. Hangfire is a very good solution for all the background tasks.