Yusr.Email 1.0.61

dotnet add package Yusr.Email --version 1.0.61
                    
NuGet\Install-Package Yusr.Email -Version 1.0.61
                    
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="Yusr.Email" Version="1.0.61" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Yusr.Email" Version="1.0.61" />
                    
Directory.Packages.props
<PackageReference Include="Yusr.Email" />
                    
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 Yusr.Email --version 1.0.61
                    
#r "nuget: Yusr.Email, 1.0.61"
                    
#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 Yusr.Email@1.0.61
                    
#: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=Yusr.Email&version=1.0.61
                    
Install as a Cake Addin
#tool nuget:?package=Yusr.Email&version=1.0.61
                    
Install as a Cake Tool

Yusr Email Service

To use this service and send an email message, here is a full sample program:

using Yusr.Email.Abstractions.Primitives;
using Yusr.Email;
using System.Collections.Generic;

// 1. Prepare attachments (optional)
var fileBytes = System.IO.File.ReadAllBytes(@"C:\path\to\file.pdf");
var attachments = new List<byte[]> { fileBytes };

// 2. Create the email message
var email = new EmailMessage(
    senderEmail: "your-email@gmail.com",
    senderName: "Your Name",
    senderAppKey: "your-gmail-app-password", // Use a Gmail App Password
    receiversEmailsList: new[] { "recipient@example.com", "another@example.com" },
    subject: "Your Subject",
    body: "This is the body content. It will be wrapped in <h2> tags by the service.",
    filesBytes: attachments
);

// 3. Send the email using the concrete EmailService
var emailService = new EmailService();
await emailService.SendAsync(email);
Product Compatible and additional computed target framework versions.
.NET 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.0.61 99 4/18/2026
1.0.61-alpha.0.1 50 4/18/2026
1.0.60 91 4/18/2026
1.0.58 93 4/18/2026
1.0.58-alpha.0.2 44 4/18/2026
1.0.58-alpha.0.1 45 4/18/2026
1.0.57 92 4/18/2026
1.0.57-alpha.0.1 58 4/18/2026
1.0.56 98 4/12/2026
1.0.56-alpha.0.1 49 4/12/2026
1.0.55 97 4/10/2026
1.0.55-alpha.0.1 60 4/10/2026
1.0.53 93 4/9/2026
1.0.53-alpha.0.1 55 4/9/2026
1.0.52 99 4/4/2026
1.0.52-alpha.0.1 51 4/4/2026
1.0.51 100 4/4/2026
1.0.51-alpha.0.1 52 4/4/2026
1.0.50 108 4/4/2026
1.0.50-alpha.0.1 54 4/4/2026
Loading failed