Rebex.Smtp
8.0.9820
Prefix Reserved
dotnet add package Rebex.Smtp --version 8.0.9820
NuGet\Install-Package Rebex.Smtp -Version 8.0.9820
<PackageReference Include="Rebex.Smtp" Version="8.0.9820" />
<PackageVersion Include="Rebex.Smtp" Version="8.0.9820" />
<PackageReference Include="Rebex.Smtp" />
paket add Rebex.Smtp --version 8.0.9820
#r "nuget: Rebex.Smtp, 8.0.9820"
#:package Rebex.Smtp@8.0.9820
#addin nuget:?package=Rebex.Smtp&version=8.0.9820
#tool nuget:?package=Rebex.Smtp&version=8.0.9820
Rebex SMTP - The C# SMTP library for .NET
Free trial | Sample code | API reference | What's new | Pricing | Support
Rebex SMTP is an SMTP client library for .NET developers. It provides email sending over the SMTP protocol with TLS encryption, from simple one-line sends to complex messages with multiple recipients and attachments. For creating and manipulating email messages, use Rebex.Mail. For receiving mail, use Rebex.Imap, Rebex.Pop3, Rebex.Ews, or Rebex.Graph.
20+ years of active development. Rebex SMTP has been continuously developed and maintained since 2006, with regular updates and new features.
Key features
- Easy-to-use API - send mail with a single line of code, or use the full-featured
Smtpclient for advanced scenarios - Sending e-mails - send from
MailMessage, stream, or file; send multiple messages in a single session; direct delivery to recipient's server; IIS pickup directory - TLS support - explicit and implicit TLS modes, STARTTLS upgrade
- Many authentication modes - password, OAuth 2.0, X.509 client certificates, GSS-API, Kerberos, NTLM, single sign-on, CRAM-MD5, DIGEST-MD5
- Async/await API - Task-based asynchronous API support
- Advanced operations - delivery status notifications (DSN), rejected recipient handling, custom sender, pipelining
- MIME and S/MIME - sign, encrypt, and verify messages using X.509 certificates (via Rebex.Mail)
- Cryptographic algorithms including PQC - ML-KEM, ML-DSA, Ed25519, ChaCha20/Poly1305, AES/GCM, ECDH, ECDSA, RSA, and more
- FIPS 140-3 compliant mode
Getting started
Send an email with a single line of code
// get a free trial key at https://www.rebex.net/support/trial/
Rebex.Licensing.Key = "==put-your-license-key-here==";
Rebex.Net.Smtp.Send("from@example.org", "to@example.org", "Subject", "Body", "smtp.example.org");
Connect, authenticate and send
using (var smtp = new Rebex.Net.Smtp())
{
// connect using explicit TLS
smtp.Connect(hostname, SslMode.Explicit);
// authenticate
smtp.Login(username, password);
// send mail
smtp.Send(sender, recipient, "Test", "Hello World!");
// disconnect (not required, but polite)
smtp.Disconnect();
}
Send multiple messages in a single session
// create SMTP client instance, connect, log in
// ...
// send all .eml files from a directory
foreach (string file in Directory.GetFiles(@"C:\MyData", "*.eml"))
{
smtp.Send(file);
}
Send directly to the recipient's SMTP server
// send the mail directly to recipient's SMTP server
SmtpRejectedRecipient[] rejected = Rebex.Net.Smtp.SendDirect(mail);
// print info about rejected recipients
foreach (SmtpRejectedRecipient recipient in rejected)
{
Console.WriteLine("Rejected: {0}", recipient.Address);
}
Delivery status notifications (DSN)
// generate DSN on failure or unusual delay
smtp.DeliveryStatusNotificationConditions =
DeliveryStatusNotificationConditions.Failure |
DeliveryStatusNotificationConditions.Delay;
// include full original message in DSN
smtp.DeliveryStatusNotificationOriginalMessageMethod =
DeliveryStatusNotificationOriginalMessageMethod.FullMessage;
// assign a unique envelope ID
mail.MessageId = new MessageId();
mail.EnvelopeId = mail.MessageId.Id;
// send the email
smtp.Send(mail);
Send via IIS mail pickup directory
var config = new SmtpConfiguration();
config.DeliveryMethod = SmtpDeliveryMethod.IisPickupDirectory;
config.PickupDirectoryPath = path;
// send the mail using IIS pickup directory
Rebex.Net.Smtp.Send(mail, config);
Forward a message
// download a message to forward
MailMessage original = imap.GetMailMessage(uniqueId);
// prepare forwarded message
MailMessage forward = new MailMessage();
forward.From = "joe@example.org";
forward.To = "john@example.org";
forward.Subject = "FW: " + original.Subject;
forward.BodyText = "Hello, I am forwarding this to you:\n\n" + original.BodyText;
// include original message as attachment
forward.Attachments.Add(new Attachment(original));
// send it
smtp.Send(forward);
Supported platforms
- .NET 11 on Windows, Linux, macOS, Android, iOS
- .NET 10 on Windows, Linux, macOS, Android, iOS
- .NET 9 on Windows, Linux, macOS
- .NET 8 on Windows, Linux, macOS
- .NET 7 on Windows, Linux, macOS
- .NET 6 on Windows, Linux, macOS
- .NET 5 on Windows, Linux, macOS
- .NET Framework 4.0, 4.5.x, 4.6.x, 4.7.x, 4.8.x
- .NET Framework 3.5 SP1
- .NET Core 3.1 on Windows, Linux, macOS
- Xamarin.Android (10.1 and higher; via .NET Standard 2.1)
- Xamarin.iOS (13.10 and higher; via .NET Standard 2.1)
- Mono 6.0 or higher on Linux and macOS
Supported architectures: x86, x64, ARM64.
Licensing
This is a paid commercial product with a free 30-day trial.
- Trial mode: Start your free 30-day trial by generating your trial key
- Licensed mode: Buy Rebex SMTP and get your full license key
When the full license key is provided, NuGet.org repository can be used to retrieve versions of Rebex components covered by your support contract.
Support
Talk to real people. No scripted or AI responses. Support is provided directly by the engineers who design and build the library.
Email us at support@rebex.net or visit rebex.net/support.
Documentation
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. 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 is compatible. 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 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. net11.0 is compatible. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net35 is compatible. net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 3.1
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
.NETFramework 3.5
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
.NETFramework 4.0
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
.NETFramework 4.6
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
.NETStandard 2.0
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
.NETStandard 2.1
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
net10.0
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
net11.0
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
net5.0
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
net6.0
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
net7.0
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
net8.0
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
net9.0
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Rebex.Smtp:
| Package | Downloads |
|---|---|
|
Rebex.TotalPack
Rebex Total Pack is a metapackage that includes all Rebex libraries such as Rebex SFTP, Rebex FTP, Rebex SSH Shell, and more. See https://www.rebex.net/total-pack/ for a complete list. This is a paid commercial product with a free 30-day trial: - Trial mode: Start your free 30-day trial by generating your trial key at https://rebex.net/support/trial-key.aspx - Licensed mode: Purchase the product at https://rebex.net/shop/ and get your full license key at https://rebex.net/protected/nuget When the full license key is provided, NuGet.org repository can be used to retrieve versions of Rebex components covered by your support contract. Supported platforms: - .NET 11 on Windows, Linux, macOS, Android, iOS - .NET 10 on Windows, Linux, macOS, Android, iOS - .NET 9 on Windows, Linux, macOS - .NET 8 on Windows, Linux, macOS - .NET 7 on Windows, Linux, macOS - .NET 6 on Windows, Linux, macOS - .NET 5 on Windows, Linux, macOS - .NET Framework 4.0, 4.5.x, 4.6.x, 4.7.x, 4.8.x - .NET Framework 3.5 SP1 - .NET Core 3.1 on Windows, Linux, macOS - Xamarin.Android (10.1 and higher; via .NET Standard 2.1) - Xamarin.iOS (13.10 and higher; via .NET Standard 2.1) - Mono 6.0 or higher on Linux and macOS |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 8.0.9820 | 0 | 11/20/2026 |
| 8.0.9797 | 10,934 | 10/28/2026 |
| 8.0.9709 | 99,033 | 8/3/2026 |
| 8.0.9673 | 9,580 | 6/25/2026 |
| 8.0.9663 | 769 | 6/24/2026 |
| 8.0.9643-rc.4 | 133 | 5/27/2026 |
| 8.0.9531-rc.3 | 192 | 2/4/2026 |
| 8.0.9440-rc.2 | 264 | 11/5/2025 |
| 8.0.9392-rc.1 | 308 | 9/19/2025 |
| 7.0.9796 | 287 | 10/28/2026 |
| 7.0.9649 | 355 | 6/23/2026 |
| 7.0.9561 | 178,523 | 3/6/2026 |
| 7.0.9448 | 55,111 | 11/12/2025 |
| 7.0.9391 | 22,533 | 9/17/2025 |
| 7.0.9313 | 21,095 | 6/30/2025 |
| 7.0.9209 | 65,542 | 3/20/2025 |
| 7.0.9147 | 19,259 | 1/16/2025 |
| 7.0.9119 | 4,764 | 12/19/2024 |
| 7.0.9083 | 8,180 | 11/13/2024 |
| 6.0.9280 | 3,542 | 6/30/2025 |
