SimpleMail 3.0.14

dotnet add package SimpleMail --version 3.0.14
NuGet\Install-Package SimpleMail -Version 3.0.14
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="SimpleMail" Version="3.0.14" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SimpleMail --version 3.0.14
#r "nuget: SimpleMail, 3.0.14"
#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.
// Install SimpleMail as a Cake Addin
#addin nuget:?package=SimpleMail&version=3.0.14

// Install SimpleMail as a Cake Tool
#tool nuget:?package=SimpleMail&version=3.0.14

SimpleMail

.NET Publish

SimpleMail is a C# library designed to simplify sending emails. It provides a convenient and straightforward interface for sending email messages.

Features

  • Easy-to-use API for sending emails and attachments
  • Compatible with .NET 6 and above

Installation

SimpleMail can be easily installed via NuGet:

dotnet add package SimpleMail

Alternatively, you can search for "SimpleMail" in the NuGet Package Manager UI and install it from there.

Getting Started

To use SimpleMail in your project, follow these simple steps:

  1. Add a reference to the SimpleMail namespace in your code file:
    using SimpleMail;
  1. Create an instance of the EmailMessage class:
    // Create a new email
    Email email = new Email
    {
        // Email address to send the email from
        From = "system@example.com",
        // Email address to send the email to
        To = "someone@example.com",
        // Subject of the email
        Subject = "Example Subject",
        // Body of the email
        Body = "Example Body",
        // Password of the email account
        Password = "password",
        // Email server to send the email
        Server = "smtp.example.com",
        // Username of the email account
        UserName = "username",
        // Port of the email server (default is 25)
        Port = 587,
        // Use SSL to encrypt the connection
        UseSSL = true,
        // Priority of the email
        Priority = MimeKit.MessagePriority.Urgent
    };
  1. Send the email:
await email.SendAsync().ConfigureAwait(false);

That's it! You have successfully sent an email using SimpleMail.

Compatibility

SimpleMail is compatible with .NET 6 and above.

Contributing

We welcome contributions to SimpleMail! If you encounter any issues, have suggestions for improvements, or would like to contribute new features, please feel free to submit a pull request.

License

SimpleMail is released under the Apache 2 License.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
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
3.0.14 89 3/5/2024
3.0.13 95 3/4/2024
3.0.12 283 11/16/2023
3.0.11 80 11/13/2023
3.0.10 100 11/6/2023
3.0.9 99 10/30/2023
3.0.8 128 9/18/2023
3.0.7 232 9/4/2023
3.0.6 160 8/30/2023
3.0.5 126 8/29/2023
3.0.4 354 8/7/2023
3.0.3 278 7/14/2023
3.0.2 120 7/14/2023
3.0.1 128 7/10/2023
3.0.0 337 12/12/2022
2.0.15 2,117 6/6/2022
2.0.13 998 1/11/2022
2.0.12 364 7/16/2021
2.0.11 460 1/7/2021
2.0.9 542 9/13/2020
2.0.8 501 7/29/2020
2.0.7 432 7/22/2020
2.0.6 508 3/25/2020
2.0.5 503 12/23/2019
2.0.2 1,096 5/22/2018
2.0.1 1,009 3/1/2018
2.0.0 1,003 1/2/2018
1.0.4 10,218 3/22/2017
1.0.3 941 3/22/2017
1.0.2 1,060 12/9/2016
1.0.1 938 11/22/2016