{"id":29131246,"url":"https://github.com/resend/resend-dotnet","last_synced_at":"2026-04-13T15:00:31.622Z","repository":{"id":182122043,"uuid":"667492633","full_name":"resend/resend-dotnet","owner":"resend","description":" Resend's Official .NET SDK, written in C#","archived":false,"fork":false,"pushed_at":"2026-03-11T05:56:57.000Z","size":393,"stargazers_count":67,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-07T06:36:35.110Z","etag":null,"topics":["csharp","dotnet","email","resend","resend-net"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/resend.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-17T16:16:35.000Z","updated_at":"2026-04-05T03:37:57.000Z","dependencies_parsed_at":"2025-02-12T18:30:33.126Z","dependency_job_id":"9005e159-72dd-4ef7-b832-d7cae76877cf","html_url":"https://github.com/resend/resend-dotnet","commit_stats":null,"previous_names":["filipetoscano/resend.net","resend/resend-dotnet"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/resend/resend-dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resend%2Fresend-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resend%2Fresend-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resend%2Fresend-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resend%2Fresend-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/resend","download_url":"https://codeload.github.com/resend/resend-dotnet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resend%2Fresend-dotnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31757482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T13:27:56.013Z","status":"ssl_error","status_checked_at":"2026-04-13T13:21:23.512Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","dotnet","email","resend","resend-net"],"created_at":"2025-06-30T05:06:56.176Z","updated_at":"2026-04-13T15:00:31.591Z","avatar_url":"https://github.com/resend.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿Resend .NET SDK\n==========================================================================\n\n[![CI](https://github.com/resend/resend-dotnet/workflows/CI/badge.svg)](https://github.com/resend/resend-dotnet/actions)\n[![NuGet](https://img.shields.io/nuget/vpre/resend.svg?label=NuGet)](https://www.nuget.org/packages/Resend/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n.NET library for the Resend API.\n\n\nInstall\n--------------------------------------------------------------------------\n\n```\n\u003e dotnet add package Resend\n```\n\n\nExamples\n--------------------------------------------------------------------------\n\nSend email with:\n\n* [ASP.NET - Minimal API](https://github.com/resend/resend-dotnet/tree/master/examples/WebMinimalApi) - Send email from an API\n* [ASP.NET - Razor](https://github.com/resend/resend-dotnet/tree/master/examples/WebRazor) - Send email from a Razor web application\n* [Console app](https://github.com/resend/resend-dotnet/tree/master/examples/ConsoleNoDi) - Send email from console app (without dependency injection)\n* [Async - Hangfire](https://github.com/resend/resend-dotnet/tree/master/examples/AsyncHangfire) - Send email as a background job using [Hangfire](https://www.hangfire.io/)\n* [Async - Temporal](https://github.com/resend/resend-dotnet/tree/master/examples/AsyncTemporal) - Send email in durable workflow using [Temporal](https://temporal.io/)\n* [Render - Razor](https://github.com/resend/resend-dotnet/tree/master/examples/RenderRazor) - Render an HTML body using Razor views\n* [Render - Liquid](https://github.com/resend/resend-dotnet/tree/master/examples/RenderLiquid) - Render an HTML body using [Fluid](https://github.com/sebastienros/fluid), a [Liquid](https://shopify.github.io/liquid/) template language\n\n\nSetup\n--------------------------------------------------------------------------\n\nFirst, you need to get an API key, which is available in the\n[Resend Dashboard](https://resend.com/).\n\nIn the startup of your application, configure the DI container as follows:\n\n```csharp\nusing Resend;\n\nbuilder.Services.AddOptions();\nbuilder.Services.AddHttpClient\u003cResendClient\u003e();\nbuilder.Services.Configure\u003cResendClientOptions\u003e( o =\u003e\n{\n    o.ApiToken = Environment.GetEnvironmentVariable( \"RESEND_APITOKEN\" )!;\n} );\nbuilder.Services.AddTransient\u003cIResend, ResendClient\u003e()\n```\n\nYou can then use the injected `IResend` instance to send emails.\n\n\nUsage\n--------------------------------------------------------------------------\n\nSend your first email:\n\n```csharp\nusing Resend;\n\npublic class FeatureImplementation\n{\n    private readonly IResend _resend;\n\n\n    public FeatureImplementation( IResend resend )\n    {\n        _resend = resend;\n    }\n\n\n    public async Task Execute()\n    {\n        var message = new EmailMessage();\n        message.From = \"onboarding@resend.dev\";\n        message.To.Add( \"delivered@resend.dev\" );\n        message.Subject = \"hello world\";\n        message.TextBody = \"it works!\";\n\n        await _resend.EmailSendAsync( message );\n    }\n}\n```\n\n\nSend email using HTML\n--------------------------------------------------------------------------\n\nSend an email custom HTML content:\n\n```csharp\nusing Resend;\n\npublic class FeatureImplementation\n{\n    private readonly IResend _resend;\n\n\n    public FeatureImplementation( IResend resend )\n    {\n        _resend = resend;\n    }\n\n\n    public async Task Execute()\n    {\n        var message = new EmailMessage();\n        message.From = \"onboarding@resend.dev\";\n        message.To.Add( \"delivered@resend.dev\" );\n        message.Subject = \"hello world\";\n        message.HtmlBody = \"\u003cstrong\u003eit works!\u003c/strong\u003e\";\n\n        await _resend.EmailSendAsync( message );\n    }\n}\n```\n\n\nLicense\n--------------------------------------------------------------------------\n\nMIT License","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fresend%2Fresend-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fresend%2Fresend-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fresend%2Fresend-dotnet/lists"}