Mtf.EmailService
1.0.0
See the version list below for details.
dotnet add package Mtf.EmailService --version 1.0.0
NuGet\Install-Package Mtf.EmailService -Version 1.0.0
<PackageReference Include="Mtf.EmailService" Version="1.0.0" />
paket add Mtf.EmailService --version 1.0.0
#r "nuget: Mtf.EmailService, 1.0.0"
// Install Mtf.EmailService as a Cake Addin #addin nuget:?package=Mtf.EmailService&version=1.0.0 // Install Mtf.EmailService as a Cake Tool #tool nuget:?package=Mtf.EmailService&version=1.0.0
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");
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.