Bodoconsult.Core.Web.Mail
1.0.1
dotnet add package Bodoconsult.Core.Web.Mail --version 1.0.1
NuGet\Install-Package Bodoconsult.Core.Web.Mail -Version 1.0.1
<PackageReference Include="Bodoconsult.Core.Web.Mail" Version="1.0.1" />
paket add Bodoconsult.Core.Web.Mail --version 1.0.1
#r "nuget: Bodoconsult.Core.Web.Mail, 1.0.1"
// Install Bodoconsult.Core.Web.Mail as a Cake Addin #addin nuget:?package=Bodoconsult.Core.Web.Mail&version=1.0.1 // Install Bodoconsult.Core.Web.Mail as a Cake Tool #tool nuget:?package=Bodoconsult.Core.Web.Mail&version=1.0.1
What does the library
Bodoconsult.Core.Web.Mail library is intended for apps which have to send (but not receive) SMTP mails like console apps.
Mass mail handling features are in an experimental state or work is in progress.
How to use the library
The source code contain a NUnit test classes, the following source code is extracted from. The samples below show the most helpful use cases for the library.
Send a simple mail with plain text
var account = new MailAccount
{
SmtpServer = "smtp.test.de",
SmtpPassword = "test123!",
SmtpAccountName = "test@test.de",
MailAddressSender = "noreply@test.de",
UseSecureConnection = true
};
var smtp = new SmtpMailer(account);
smtp.Init();
smtp.SendMail("to@test.de", "Testmail", "dgdgdgdgdgs sfsgdgs sshshsh");
Assert.IsTrue(true);
Send a HTML mail
var account = new MailAccount
{
SmtpServer = "smtp.test.de",
SmtpPassword = "test123!",
SmtpAccountName = "test@test.de",
MailAddressSender = "noreply@test.de",
UseSecureConnection = true
};
var msg = new MailMessage {IsBodyHtml = true};
var add = new MailAddress(account.MailAddressSender);
msg.From = add;
add = new MailAddress(TestHelper.GetTestReceiver());
msg.To.Add(add);
msg.Subject = "Bodoconsult.Core.Web.Mail: test mail";
msg.Body = "<p>ajHA SADad asd AS Ddad</p>";
var smtp = new SmtpMailer(account);
smtp.Init();
smtp.SendMail(msg);
About us
Bodoconsult (http://www.bodoconsult.de) is a Munich based software development company from Germany.
Robert Leisner is senior software developer at Bodoconsult. See his profile on http://www.bodoconsult.de/Curriculum_vitae_Robert_Leisner.pdf.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | 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. |
-
.NETStandard 2.0
- Microsoft.Graph (>= 4.49.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Updated dependencies and added README.md