2017-09-13 15:47:34 +09:00
|
|
|
using System.Text.Encodings.Web;
|
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
|
|
|
|
{
|
2019-01-06 15:53:37 +01:00
|
|
|
public static void SendEmailConfirmation(this IEmailSender emailSender, string email, string link)
|
2017-09-13 15:47:34 +09:00
|
|
|
{
|
2019-01-06 15:53:37 +01:00
|
|
|
emailSender.SendEmail(email, "Confirm your email",
|
2017-09-13 15:47:34 +09:00
|
|
|
$"Please confirm your account by clicking this link: <a href='{HtmlEncoder.Default.Encode(link)}'>link</a>");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|