GithubHelp home page GithubHelp logo

matthew-oduamafu / hangfireandsendgrid Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 44 KB

The Hangfire Email Scheduler is a project that demonstrates how to use the Hangfire package to schedule and execute background tasks for sending newsletter emails at regular intervals. The project utilizes Hangfire's background job processing capabilities and integrates with the SendGrid package for sending emails.

C# 100.00%
hangfire hangfire-dotnet-core sendgrid sendgrid-api

hangfireandsendgrid's Introduction

Using Hangfire and SendGrid to Send asynchronous emails

Description

This project demonstrates how to use Hangfire and SendGrid to send newsletter emails in the background at a 2-minute interval.

Features

  • Background task processing using Hangfire
  • Sending emails using SendGrid
  • Configurable email interval

Technologies

  • Hangfire
  • SendGrid

Installation

  1. Clone the repository: git clone https://github.com/Matthew-Oduamafu/HangfireAndSendGrid.git
  2. Navigate to the project directory: cd HangfireAndSendGrid
  3. Install dependencies: dotnet restore
  4. Configure SendGrid API key:
    • Open appsettings.json file
    • Replace YOUR_SENDGRID_API_KEY with your actual SendGrid API key or Add ApiKey to Environment variables
  5. Build the project: dotnet build

Usage

  1. Run the project: dotnet run
  2. Access the application at: https://localhost:7256
  3. The newsletter emails will be sent automatically in the background at a 2-minute interval.

Configuration

  • appsettings.json: Contains configuration settings for Hangfire and SendGrid.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.