MyMail.Blazor (0.1.0)

Published 2026-10-17 17:55:25 +01:00 by RAAPEREIRA

Installation

dotnet nuget add source --name RAAPEREIRA --username your_username --password your_token 
dotnet add package --source RAAPEREIRA --version 0.1.0 MyMail.Blazor

About this package

Blazor email client UI components built on MyMail and SmarterMail.Net.

MyMail.Blazor

An embeddable Blazor email client built on MyMail and SmarterMail.Net. Targets .NET 10 and includes its own styles without requiring a third-party component library.

Installation

Install the package from your configured NuGet feed:

dotnet add package MyMail.Blazor

Configuration

Register both the headless library and the Blazor services in Program.cs:

using MyMail.Extensions;
using MyMail.Blazor.Extensions;

services.AddMyMail(options =>
{
    options.BaseUrl = "https://mail.example.com";
    options.AllowedEmailDomains = new[] { "example.com" }; // Optional
});
services.AddMyMailBlazor();

Add the stylesheet to your host page:

<link href="_content/MyMail.Blazor/mymail.css" rel="stylesheet" />

Import the component namespace in _Imports.razor:

@using MyMail.Blazor.Components.Mail

Render the mail client with credentials supplied by your application:

<MailClient @key="username" Username="@username" Password="@password" />

The host application owns authentication. Use @key to remount the component when switching users. AddMyMailBlazor() does not register AddMyMail(); both registrations are required.

Dependencies

ID Version Target Framework
MyMail 0.1.0 net10.0
Details
NuGet
2026-10-17 17:55:25 +01:00
4
2026-11-24 07:24:20 +00:00
Rui Pereira
1.2 MiB
Assets (4)
Versions (8) View all
2.1.12 2026-11-20
2.1.11 2026-11-19
2.1.10 2026-11-19
2.1.9 2026-11-18
2.1.8 2026-10-17