Tag: asp.net core mvc
There are 2 posts with the "asp.net core mvc" tag.
Duplicate Validation Messages with FluentValidation in ASP.NET Core 6 MVC
Validation is an important step when handling data from a request in ASP.NET Core 6. FluentValidation is a popular .NET library which can make validation your models easier. It allows you to define your validation rules in a single place and integrate custom logic for your validation, which would require you to make a new filter if you used data annotations. However, in ASP.NET Core 6 MVC there was a change in the project template that could result in seeing data annotation produced vali
Read more...How to send emails in .NET Core with MimeKit and Mailkit
The ability for an application to send emails is a very common requirement. This can be for emails such as providing account information, sending marketing emails or even a password reset email. This post will cover how to send an email using MimeKit and MailKit from an ASP.NET Core MVC web application. I will use MailSlurper as a local SMTP server to test the sending of the emails. You can use any SMTP server you prefer though. Creating the ASP.NET Core MVC demo project
Read more...