SimpleMail 3.0.3
See the version list below for details.
dotnet add package SimpleMail --version 3.0.3
NuGet\Install-Package SimpleMail -Version 3.0.3
<PackageReference Include="SimpleMail" Version="3.0.3" />
paket add SimpleMail --version 3.0.3
#r "nuget: SimpleMail, 3.0.3"
// Install SimpleMail as a Cake Addin #addin nuget:?package=SimpleMail&version=3.0.3 // Install SimpleMail as a Cake Tool #tool nuget:?package=SimpleMail&version=3.0.3
SimpleMail
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:
- Add a reference to the SimpleMail namespace in your code file:
using SimpleMail;
- 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
};
- 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 | Versions 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. |
-
net6.0
- MailKit (>= 4.1.0)
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.26 | 64 | 11/4/2024 |
3.0.25 | 87 | 10/29/2024 |
3.0.24 | 97 | 9/30/2024 |
3.0.23 | 103 | 7/16/2024 |
3.0.22 | 93 | 7/15/2024 |
3.0.21 | 104 | 7/1/2024 |
3.0.20 | 116 | 6/17/2024 |
3.0.19 | 114 | 5/20/2024 |
3.0.18 | 131 | 5/6/2024 |
3.0.17 | 115 | 5/1/2024 |
3.0.16 | 113 | 4/30/2024 |
3.0.15 | 130 | 4/15/2024 |
3.0.14 | 129 | 3/5/2024 |
3.0.13 | 125 | 3/4/2024 |
3.0.12 | 475 | 11/16/2023 |
3.0.11 | 106 | 11/13/2023 |
3.0.10 | 128 | 11/6/2023 |
3.0.9 | 125 | 10/30/2023 |
3.0.8 | 160 | 9/18/2023 |
3.0.7 | 254 | 9/4/2023 |
3.0.6 | 195 | 8/30/2023 |
3.0.5 | 153 | 8/29/2023 |
3.0.4 | 384 | 8/7/2023 |
3.0.3 | 306 | 7/14/2023 |
3.0.2 | 146 | 7/14/2023 |
3.0.1 | 156 | 7/10/2023 |
3.0.0 | 360 | 12/12/2022 |
2.0.15 | 2,447 | 6/6/2022 |
2.0.13 | 1,017 | 1/11/2022 |
2.0.12 | 387 | 7/16/2021 |
2.0.11 | 479 | 1/7/2021 |
2.0.9 | 571 | 9/13/2020 |
2.0.8 | 525 | 7/29/2020 |
2.0.7 | 459 | 7/22/2020 |
2.0.6 | 537 | 3/25/2020 |
2.0.5 | 524 | 12/23/2019 |
2.0.2 | 1,134 | 5/22/2018 |
2.0.1 | 1,031 | 3/1/2018 |
2.0.0 | 1,014 | 1/2/2018 |
1.0.4 | 11,142 | 3/22/2017 |
1.0.3 | 969 | 3/22/2017 |
1.0.2 | 1,081 | 12/9/2016 |
1.0.1 | 963 | 11/22/2016 |