All Projects → myloveCc → NETCore.MailKit

myloveCc / NETCore.MailKit

Licence: MIT license
.NET Core EmailKit extensions

Programming Languages

C#
18002 projects
HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to NETCore.MailKit

Magic
Create your .Net Core/Angular/Database CRUD Web apps by simply clicking a button
Stars: ✭ 214 (+109.8%)
Mutual labels:  asp-net-core
Templates
.NET project templates with batteries included, providing the minimum amount of code required to get you going faster.
Stars: ✭ 2,864 (+2707.84%)
Mutual labels:  asp-net-core
SeoTags
SeoTags create all SEO tags you need such as meta, link, twitter card (twitter:), open graph (og:), and JSON-LD schema (structred data).
Stars: ✭ 113 (+10.78%)
Mutual labels:  asp-net-core
Coolcat
A sample about how to create a dynamic plugins mechanism with ASP.NET Core Mvc at runtime. This sample is based on .NET Core 3.1 and .NET 5
Stars: ✭ 216 (+111.76%)
Mutual labels:  asp-net-core
Electron.net Api Demos
Explore the Electron.NET APIs
Stars: ✭ 231 (+126.47%)
Mutual labels:  asp-net-core
Cqrs Clean Eventual Consistency
CQRS, using Clean Architecture, multiple databases and Eventual Consistency
Stars: ✭ 247 (+142.16%)
Mutual labels:  asp-net-core
Home
Welcome to .NET "Presentations in a Box." We have a listing of workshops and presentations YOU can use AND contribute to! Remix and share, and present at Meetups, User Groups, CodeCamps, or Conferences! Not familiar with .NET? Download open source .NET Core for any OS at http://dot.net or try it in your browser at http://try.dot.net now!
Stars: ✭ 204 (+100%)
Mutual labels:  asp-net-core
generic-for-core
🏗️ Generic Repository & UOW Pattern For ASP.NET Core
Stars: ✭ 55 (-46.08%)
Mutual labels:  asp-net-core
Identityserver4.admin
The administration for the IdentityServer4 and Asp.Net Core Identity
Stars: ✭ 2,998 (+2839.22%)
Mutual labels:  asp-net-core
Localization.AspNetCore.TagHelpers
Asp.Net Core Tag Helpers to use when localizing Asp.Net Core application instead of manually injecting IViewLocator
Stars: ✭ 25 (-75.49%)
Mutual labels:  asp-net-core
Aspnetcore2jwtauthentication
Jwt Authentication without ASP.NET Core Identity
Stars: ✭ 218 (+113.73%)
Mutual labels:  asp-net-core
File Service
ASP.NET Core based universal file server
Stars: ✭ 228 (+123.53%)
Mutual labels:  asp-net-core
Nlog.web
NLog integration for ASP.NET & ASP.NET Core 1-5
Stars: ✭ 252 (+147.06%)
Mutual labels:  asp-net-core
Signalr Client Swift
Swift SignalR Client for Asp.Net Core SignalR server
Stars: ✭ 213 (+108.82%)
Mutual labels:  asp-net-core
KentNoteBook
ASP.NET.Core and EF Core demo, JWT
Stars: ✭ 24 (-76.47%)
Mutual labels:  asp-net-core
Grapefruit.vucore
A front-background project using ASP.NET Core WebApi and Vue.js
Stars: ✭ 210 (+105.88%)
Mutual labels:  asp-net-core
Winton.extensions.configuration.consul
Enables Consul to be used as a configuration source in dotnet core applications
Stars: ✭ 239 (+134.31%)
Mutual labels:  asp-net-core
SecureStore
A .NET implementation of the cross-platform SecureStore (symmetrically-encrypted secrets) protocol
Stars: ✭ 62 (-39.22%)
Mutual labels:  asp-net-core
aspnet-core-social-network
Social network based on ASP.NET Web API Core 2
Stars: ✭ 36 (-64.71%)
Mutual labels:  asp-net-core
Yoyocmsfree.template
一个免费版本的ABP框架,整合了ng-Zorro。
Stars: ✭ 254 (+149.02%)
Mutual labels:  asp-net-core

NETCore.MailKit

NuGet NETCore CLR MailKit license GitHub-Actions-Img

MailKit extension for asp.net core

Install with nuget

Install-Package NETCore.MailKit -Version 2.1.0

Install with .NET CLI

dotnet add package NETCore.MailKit --version 2.1.0

How to use

Add MailKit in startup like

public void ConfigureServices(IServiceCollection services)
{
    // Add framework services.
    services.AddMvc();

    //Add MailKit
    services.AddMailKit(optionBuilder =>
    {
        optionBuilder.UseMailKit(new MailKitOptions()
        {
            //get options from sercets.json
            Server = Configuration["Server"],
            Port = Convert.ToInt32(Configuration["Port"]),
            SenderName = Configuration["SenderName"],
            SenderEmail = Configuration["SenderEmail"],
			
            // can be optional with no authentication 
            Account = Configuration["Account"],
            Password = Configuration["Password"],
            // enable ssl or tls
            Security = true
        });
    });
}

Use EmailService like

public class HomeController : Controller
{
    private readonly IEmailService _EmailService;

    public HomeController(IEmailService emailService)
    {
        _EmailService = emailService;
    }

    public IActionResult Email()
    {
        ViewData["Message"] = "ASP.NET Core mvc send email example";

        _EmailService.Send("[email protected]", "ASP.NET Core mvc send email example", "Send from asp.net core mvc action");

        return View();
    }
}

LICENSE

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].