PosInformatique.Foundations.Emailing.Mailjet 1.3.0

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package PosInformatique.Foundations.Emailing.Mailjet --version 1.3.0
                    
NuGet\Install-Package PosInformatique.Foundations.Emailing.Mailjet -Version 1.3.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="PosInformatique.Foundations.Emailing.Mailjet" Version="1.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PosInformatique.Foundations.Emailing.Mailjet" Version="1.3.0" />
                    
Directory.Packages.props
<PackageReference Include="PosInformatique.Foundations.Emailing.Mailjet" />
                    
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 PosInformatique.Foundations.Emailing.Mailjet --version 1.3.0
                    
#r "nuget: PosInformatique.Foundations.Emailing.Mailjet, 1.3.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 PosInformatique.Foundations.Emailing.Mailjet@1.3.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=PosInformatique.Foundations.Emailing.Mailjet&version=1.3.0
                    
Install as a Cake Addin
#tool nuget:?package=PosInformatique.Foundations.Emailing.Mailjet&version=1.3.0
                    
Install as a Cake Tool

PosInformatique.Foundations.Emailing.Mailjet

NuGet version NuGet downloads

Introduction

PosInformatique.Foundations.Emailing.Mailjet provides an IEmailProvider implementation for PosInformatique.Foundations.Emailing based on the IMailjetClient from Mailjet.Api.

It allows you to send templated emails (created via IEmailManager) using Mailjet.

Install

You can install the package from NuGet:

dotnet add package PosInformatique.Foundations.Emailing.Mailjet

Features

  • IEmailProvider implementation using Mailjet.Client.IMailjetClient.
  • Simple configuration through AddEmailing().UseMailjet(...).
  • Supports configuration via the Mailjet API key and API secret.
  • Registers and configures a named HttpClient (via IHttpClientFactory) used to communicate with the Mailjet API, so you can further customize it (handlers, timeouts, resilience policies, etc.) if needed.

Notes

Email tracking is disabled. Both open tracking and click tracking are configured to be disabled when sending emails through this provider.

Basic configuration

Using API key and secret

using Microsoft.Extensions.DependencyInjection;
using PosInformatique.Foundations.EmailAddresses;

var services = new ServiceCollection();

// Your Mailjet API credentials
var apiKey = configuration["Mailjet:ApiKey"];
var apiSecret = configuration["Mailjet:ApiSecret"];

services
    .AddEmailing(options =>
    {
        options.SenderEmailAddress = EmailAddress.Parse("no-reply@myapp.com");

        // Register your templates here...
        // options.RegisterTemplate(EmailTemplateIdentifiers.Invitation, invitationTemplate);
    })
    .UseMailjet(apiKey, apiSecret);

Typical usage end-to-end

  1. Configure emailing and templates with AddEmailing(...).
  2. Configure the Mailjet provider using UseMailjet(...).
  3. Inject IEmailManager and create an email from a template identifier.
  4. Add recipients and models.
  5. Call SendAsync(...) to send via Mailjet.
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  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 is compatible.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.4.0-rc.1 0 10/5/2026
1.3.0 57 10/2/2026
1.3.0-rc.4 60 9/29/2026
1.3.0-rc.3 57 9/28/2026
1.3.0-rc.2 55 9/25/2026

1.3.0
 - Initial release with Mailjet Emailing provider.