java.lang.Object
edu.ntnu.idatt2106_2023_06.backend.service.users.EmailService
All Implemented Interfaces:
IEmailService

@Service @EnableCaching public class EmailService extends Object implements IEmailService
This class allows for emails to be sent to users regarding issues such as registration and password resetting.
Author:
Trym Hamer Gudvangen
  • Constructor Details

    • EmailService

      public EmailService()
  • Method Details

    • sendActivationEmail

      @Async public void sendActivationEmail(User user) throws jakarta.mail.MessagingException
      Specified by:
      sendActivationEmail in interface IEmailService
      Throws:
      jakarta.mail.MessagingException
    • sendResetPassword

      @Async public void sendResetPassword(User user) throws jakarta.mail.MessagingException
      Specified by:
      sendResetPassword in interface IEmailService
      Throws:
      jakarta.mail.MessagingException