Transmitly.ChannelProvider.MailKit
0.1.0-alpha-41.c47663e
See the version list below for details.
dotnet add package Transmitly.ChannelProvider.MailKit --version 0.1.0-alpha-41.c47663e
NuGet\Install-Package Transmitly.ChannelProvider.MailKit -Version 0.1.0-alpha-41.c47663e
<PackageReference Include="Transmitly.ChannelProvider.MailKit" Version="0.1.0-alpha-41.c47663e" />
paket add Transmitly.ChannelProvider.MailKit --version 0.1.0-alpha-41.c47663e
#r "nuget: Transmitly.ChannelProvider.MailKit, 0.1.0-alpha-41.c47663e"
// Install Transmitly.ChannelProvider.MailKit as a Cake Addin #addin nuget:?package=Transmitly.ChannelProvider.MailKit&version=0.1.0-alpha-41.c47663e&prerelease // Install Transmitly.ChannelProvider.MailKit as a Cake Tool #tool nuget:?package=Transmitly.ChannelProvider.MailKit&version=0.1.0-alpha-41.c47663e&prerelease
Transmitly.ChannelProvider.MailKit
A Transmitly channel provider that enables sending Email communications through SMTP using MailKit
Getting started
To use the MailKit channel provider, first install the NuGet package:
dotnet add package Transmitly.ChannelProvider.MailKit
Then add the channel provider using AddMailKitSupport()
:
using Transmitly;
//...
var communicationClient = new CommunicationsClientBuilder()
.AddMailKitSupport(options =>
{
options.Host = "smtp.test.com";
options.Port = 587;
options.UseSsl = true;
options.UserName = "Test";
options.Password = "Password";
})
//Pipelines are the heart of Transmitly. Pipelines allow you to define your communications
//as a domain action. This allows your domain code to stay agnostic to the details of how you
//may send out a transactional communication.
.AddPipeline("first-pipeline", pipeline =>
{
//AddEmail is a Channel that is core to the Transmitly library.
//AsAudienceAddress() is also a convience method that helps us create an audience address
//Audience addresses can be anything, email, phone, or even a device/app Id for push notifications!
pipeline.AddEmail("from@mydomain.com".AsAudienceAddress("My From Display Name"), email =>
{
//Transmitly is a bit different. All of our communication content is configured by templates.
//Out of the box, we have static or string templates, file and even embedded template support.
//There are multiple types of templates to get you started. You can even create templates
//specific to certain cultures!
email.Subject.AddStringTemplate("Check out Transmit.ly!");
email.HtmlBody.AddStringTemplate("Hey, check out this cool communciations library. <a href=\"https://transmit.ly\">")
email.TextBody.AddStringTemplate("Hey, check out this cool communciations library. https://transmitly.ly");
});
})
.BuildClient();
//Dispatch (send) the transsactional email to our friend Joe (joe@mydomain.com) using our configured SMTP server and our "first-pipeline" pipeline.
var result = await communicationsClient.DispatchAsync("first-pipeline", "joe@mydomain.com".AsAudienceAddress("Joe"), new { });
- Check out the Transmitly project for more details on what a channel provider is and how it can be used to improve how you manage your customer communications.
<picture> <source media="(prefers-color-scheme: dark)" srcset="https://github.com/transmitly/transmitly/assets/3877248/524f26c8-f670-4dfa-be78-badda0f48bfb"> <img alt="an open-source project sponsored by CiLabs of Code Impressions, LLC" src="https://github.com/transmitly/transmitly/assets/3877248/34239edd-234d-4bee-9352-49d781716364" width="350" align="right"> </picture>
Copyright © Code Impressions, LLC - Provided under the Apache License, Version 2.0.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. 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 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 is compatible. net472 was computed. net48 is compatible. 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. |
-
.NETFramework 4.7.1
- MailKit (>= 3.0.0)
- Transmitly (>= 0.1.0-alpha-87.9e1c812)
-
.NETFramework 4.8
- MailKit (>= 3.0.0)
- Transmitly (>= 0.1.0-alpha-87.9e1c812)
-
.NETStandard 2.0
- MailKit (>= 3.0.0)
- Transmitly (>= 0.1.0-alpha-87.9e1c812)
-
net6.0
- MailKit (>= 3.0.0)
- Transmitly (>= 0.1.0-alpha-87.9e1c812)
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.1.0-alpha-42.e8a7a72 | 4 | 3/3/2024 |
0.1.0-alpha-41.c47663e | 1 | 3/2/2024 |
0.1.0-alpha-38.656258d | 1 | 2/21/2024 |
0.1.0-alpha-37.9154e5a | 1 | 2/17/2024 |
0.1.0-alpha-33.cc6c88c | 1 | 2/15/2024 |
0.1.0-alpha-31.b89bae5 | 1 | 2/15/2024 |
0.1.0-alpha-.4d6433f | 1 | 2/15/2024 |
0.1.0-alpha.fc20cab | 1 | 2/15/2024 |
0.1.0-alpha.f6ef9d5 | 1 | 2/15/2024 |
0.1.0-alpha.d30e39b | 1 | 2/15/2024 |
0.1.0-alpha.c3dea41 | 1 | 2/15/2024 |
0.1.0-alpha.4951dd9 | 1 | 2/15/2024 |
0.1.0-alpha.20796b3 | 1 | 2/15/2024 |