A .NET 10.0 worker service that generates daily C# tips using Google Gemini AI and delivers them via email using Resend.
- 🤖 AI-Powered: Generates concise, professional C# tips using Google's Gemini Flash model.
- 📧 Automated Email: Sends formatted HTML emails via Resend.
- ⏱️ Scheduled: Runs on a configurable schedule using Quartz.NET.
- 🐳 Dockerized: Includes Docker support for easy deployment.
- .NET 10.0 SDK
- Docker (optional)
- API Keys for:
Configure the application using appsettings.json or Environment Variables.
| Setting | Environment Variable | Description |
|---|---|---|
| Gemini API Key | GEMINI_API_KEY |
Your Google Gemini API Key |
| Email API Key | Email__EmailApiKey |
Your Resend API Key |
| From Email | Email__FromEmail |
Sender email address (must be verified in Resend) |
| To Email | Email__ToEmail |
Recipient email address |
{
"GEMINI_API_KEY": "your_gemini_key",
"Email": {
"EmailApiKey": "your_resend_key",
"FromEmail": "newsletter@yourdomain.com",
"ToEmail": "you@example.com"
}
}-
Restore dependencies:
dotnet restore
-
Run the application:
dotnet run
Build and run using Docker Compose:
docker compose up --build- Framework: .NET 10.0
- AI: Google.GenAI
- Email: Resend
- Scheduling: Quartz.NET
- Hosting: Microsoft.Extensions.Hosting