21 lines
700 B
C#
21 lines
700 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Identity.UI.Services;
|
|
|
|
namespace Identity.DefaultUI.WebSite
|
|
{
|
|
public class ContosoEmailSender : IEmailSender
|
|
{
|
|
public IList<IdentityEmail> SentEmails { get; set; } = new List<IdentityEmail>();
|
|
|
|
public Task SendEmailAsync(string email, string subject, string htmlMessage)
|
|
{
|
|
SentEmails.Add(new IdentityEmail(email, subject, htmlMessage));
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|
|
}
|