Mtf.EmailService
1.0.1
dotnet add package Mtf.EmailService --version 1.0.1
NuGet\Install-Package Mtf.EmailService -Version 1.0.1
<PackageReference Include="Mtf.EmailService" Version="1.0.1" />
paket add Mtf.EmailService --version 1.0.1
#r "nuget: Mtf.EmailService, 1.0.1"
// Install Mtf.EmailService as a Cake Addin #addin nuget:?package=Mtf.EmailService&version=1.0.1 // Install Mtf.EmailService as a Cake Tool #tool nuget:?package=Mtf.EmailService&version=1.0.1
Usage:
First you have to define your SMTP server. var smtpServer = new SmtpServer("mail.digikabel.hu", 25, false, "user@digikabel.hu", "pass", null, true);
Then create a message sender. var sendMail = new SendMail(smtpServer);
Optionally you can check what happened with your e-mail. sendMail.SentChanged += SendMail_SentChanged;
And finally, you just send your message. sendMail.Send("sender@email.address.hu", "receiver@email.address.hu", "Title of e-mail", "Content of e-mail");
The SentChangedEventArgs has been extended with sender and recipents information.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.