EmailSender.cs 536 B

1234567891011121314151617181920
  1. using Microsoft.AspNetCore.Identity.UI.Services;
  2. namespace bitforum.Services
  3. {
  4. public class EmailSender : IEmailSender
  5. {
  6. private readonly IMailService _mailService;
  7. public EmailSender(IMailService mailService)
  8. {
  9. _mailService = mailService;
  10. }
  11. // 이메일 전송
  12. public async Task SendEmailAsync(string toAddress, string subject, string message)
  13. {
  14. await _mailService.SetEmailLogAsync(new SendData(toAddress, subject, message));
  15. }
  16. }
  17. }