AutoPost 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package AutoPost --version 1.0.0
                    
NuGet\Install-Package AutoPost -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AutoPost" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AutoPost" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="AutoPost" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AutoPost --version 1.0.0
                    
#r "nuget: AutoPost, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AutoPost@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AutoPost&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=AutoPost&version=1.0.0
                    
Install as a Cake Tool

AutoPost

Developer-facing facade for the AutoPost SDK: send email (and later SMS, webhooks) via a simple API and fluent builders. No server required—sending runs in your process through the provider you register.

Installation

dotnet add package AutoPost
dotnet add package AutoPost.DependencyInjection
dotnet add package AutoPost.Mail.Providers.Smtp
# or: AutoPost.Mail.Providers.Resend

Quick start

using AutoPost;
using AutoPost.Abstractions.Messaging;

// In Startup / Program
services.AddAutoPost(o =>
{
    o.DefaultProvider = "smtp";
    o.ThrowOnFailure = true;
});
services.AddSmtpProvider(o =>
{
    o.Host = "smtp.office365.com";
    o.Port = 587;
    o.EnableSsl = true;
    o.Username = "you@domain.com";
    o.Password = "...";
});

// Send
var mail = serviceProvider.GetRequiredService<IAutoPostMail>();
var message = Email.To("user@example.com")
    .Subject("Welcome")
    .Html("<h1>Hello</h1>")
    .From("no-reply@yourdomain.com")
    .Build();
var result = await mail.SendAsync(message);

What's inside

  • IAutoPostMailSendAsync(EmailMessage)
  • EmailMessage — To, From, Subject, Body, IsBodyHtml
  • Email — fluent builder: Email.To(...).Subject(...).Html(...).From(...).Build()

SMS and Webhooks throw NotSupportedException until those channels are implemented.

  • AutoPost.DependencyInjection — register the SDK and providers
  • AutoPost.Mail.Providers.Smtp — send via SMTP
  • AutoPost.Mail.Providers.Resend — send via Resend API
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on AutoPost:

Package Downloads
AutoPost.DependencyInjection

DI extensions for registering the AutoPost SDK (AddAutoPost).

AutoPost.Sample.Console

Package Description

AutoPost.Testing

Fake HTTP handler and test helpers for the AutoPost SDK.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 150 3/2/2026
1.0.0 139 2/19/2026