Class MailService

java.lang.Object
eu.europeana.apikey.mail.MailService

@Component public class MailService extends Object
Created by luthien on 04/07/2017.
  • Field Details

    • emailSender

      @Autowired public org.springframework.mail.javamail.JavaMailSender emailSender
      The Email sender.
  • Constructor Details

    • MailService

      public MailService()
  • Method Details

    • sendApiKeyEmail

      public void sendApiKeyEmail(org.springframework.mail.SimpleMailMessage template, String firstName, String lastName, String apiKey) throws SendMailException
      Send api key email.
      Parameters:
      template - the template
      firstName - the first name
      lastName - the last name
      apiKey - the api key
      Throws:
      SendMailException - the send mail exception
    • sendApiKeyAndClientEmail

      public void sendApiKeyAndClientEmail(org.springframework.mail.SimpleMailMessage template, String firstName, String lastName, String apiKey, String clientSecret) throws SendMailException
      Send api key and client email.
      Parameters:
      template - the template
      firstName - the first name
      lastName - the last name
      apiKey - the api key
      clientSecret - the client secret
      Throws:
      SendMailException - the send mail exception
    • sendDeletedUserEmail

      public boolean sendDeletedUserEmail(org.springframework.mail.SimpleMailMessage template, String today, String email, String kcDeleted, String setsDeleted, String inThirtyDays)
      Send deleted user email boolean.
      Parameters:
      template - the template
      today - the today
      email - the email
      kcDeleted - the kc deleted
      setsDeleted - the sets deleted
      inThirtyDays - the in thirty days
      Returns:
      the boolean
    • sendUserProblemEmail

      public boolean sendUserProblemEmail(org.springframework.mail.SimpleMailMessage template, String today, String userId, int status)
      Send user problem email boolean.
      Parameters:
      template - the template
      today - the today
      userId - the user id
      status - the status
      Returns:
      the boolean