Creating an Email Form With ASP.NET Core Razor Pages

In the comments of my last post, I got asked to write about how to create an email form using ASP.NET Core Razor Pages. The reader also asked about a tutorial about authentication and authorization. I’ll write about this in one of the next posts. This post is just about creating a form and sending an email with the form values.

Creating a New Project
To try this out, you need to have the latest Preview of Visual Studio 2017 installed (I use 15.3.0 Preview 3) and you need .NET Core 2.0 Preview installed (2.0.0-preview2-006497 in my case).