Class EmailServiceImpl

java.lang.Object
org.example.crmedu.infrastructure.service.EmailServiceImpl
All Implemented Interfaces:
EmailService

@Service public class EmailServiceImpl extends Object implements EmailService
Implementation of EmailService for sending emails.

Uses JavaMailSender to send MIME-formatted emails with support for HTML content.

  • Constructor Details

    • EmailServiceImpl

      public EmailServiceImpl()
  • Method Details

    • sendMail

      public void sendMail(String to, String subject, String text)
      Description copied from interface: EmailService
      Sends email to specific mail-address.
      Specified by:
      sendMail in interface EmailService
      Parameters:
      to - an email address of the consumer
      subject - the subject of the mail
      text - the text of the mail