2017-09-13 15:47:34 +09:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Text.Encodings.Web;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using BTCPayServer.Services;
|
2017-09-15 16:06:57 +09:00
|
|
|
using BTCPayServer.Services.Mails;
|
2017-09-13 15:47:34 +09:00
|
|
|
|
|
|
|
namespace BTCPayServer.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>");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|