mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
20 lines
622 B
C#
20 lines
622 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text.Encodings.Web;
|
|
using System.Threading.Tasks;
|
|
using BTCPayServer.Services;
|
|
using BTCPayServer.Services.Mails;
|
|
|
|
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>");
|
|
}
|
|
}
|
|
}
|