Configuring your applications and services

In the previous sections, you have further advanced by adding missing components to the user registration process and even localizing parts of the Tic-Tac-Toe application. However, you have always simulated the email confirmation by setting the user confirmation programmatically in code. In this section, we will modify this part to really send emails to newly-registered users and make everything fully configurable.

First, you are going to add a new Email Service, which will be used to send emails to users who have freshly registered on the website:

  1. Within the Services folder, add a new service called EmailService, and implement a default SendEmail method (we will update it later):
 public class ...

Get Learning ASP.NET Core 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.