To work with EmailSender you need to add these properties to user secrets.json
{
"Email": "your email account",
"Password": "your password",
"Host": "smtp address of your host", //"for gmail it's: smtp.gmail.com",
"Port": "port address of smtp", // for gmail it's 587
}