Interface EmailTemplateService

All Known Implementing Classes:
DefaultEmailTemplateServiceImpl

public interface EmailTemplateService
템플릿으로 제목/본문을 만들어 HTML 메일을 발송하는 서비스.

예전에는 Fulcrum CommonsEmailService(Avalon 서비스)를 상속했지만, 지금은 평범한 Spring bean interface 이다. 구현체는 DefaultEmailTemplateServiceImpl.

Author:
Youngho Cho
  • Field Details

  • Method Details

    • send

      void send(NotificationContext context, Module module, InternetAddress fromUser, InternetAddress replyToUser, Collection<InternetAddress> toUsers, Collection<InternetAddress> ccUsers, String template, Locale locale, Collection<NotificationStatus> statuss) throws Exception
      수신자(toUsers) 한 명마다 메일을 하나씩 동기 발송한다. 하나라도 실패하면 예외를 던진다 - 호출한 쪽 (BatchNotificationManager)이 DEFERRED/FAIL 처리를 한다.
      Parameters:
      context - template 변수
      module - 메일을 발송하는 module (SMTP domain 선택에 사용)
      fromUser - 보내는 사람
      replyToUser - 답장 받을 사람 (null 가능)
      toUsers - 받는 사람
      ccUsers - 참조 (null 가능)
      template - NotificationType 의 template 이름
      locale - 수신자 locale
      statuss - 이 메일이 통지하는 NotificationStatus (추적용 header 에 사용)
      Throws:
      Exception