mirror of
https://github.com/valentincanonical/eShopOnWeb-chisel-demo.git
synced 2026-05-18 06:17:05 +00:00
16 lines
557 B
C#
16 lines
557 B
C#
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
|
using System.Text.Encodings.Web;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Microsoft.eShopWeb.Web.Services
|
|
{
|
|
public static class EmailSenderExtensions
|
|
{
|
|
public static Task SendEmailConfirmationAsync(this IEmailSender emailSender, string email, string link)
|
|
{
|
|
return emailSender.SendEmailAsync(email, "Confirm your email",
|
|
$"Please confirm your account by clicking this link: <a href='{HtmlEncoder.Default.Encode(link)}'>link</a>");
|
|
}
|
|
}
|
|
}
|