📜  asp net core 异步发送电子邮件 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:39.309000             🧑  作者: Mango

代码示例1
public interface IEmailSender
{
    Task SendEmailAsync(string email, string subject, string message);
}

public class EmailSender : IEmailSender
{
    public Task SendEmailAsync(string email, string subject, string message)
    {
        return Task.CompletedTask;
    }
}