Class SimpleEmailService

java.lang.Object
com.bluebell.greenhouse.radicle.services.email.impl.SimpleEmailService
All Implemented Interfaces:
EmailService
Direct Known Subclasses:
ScheduledJobEmailService

@Service public class SimpleEmailService extends Object implements EmailService
Implementation of the EmailService for sending emails about Jobs.
Version:
2.0.3
Author:
Stephen Prizio
  • Constructor Details

    • SimpleEmailService

      public SimpleEmailService()
  • Method Details

    • sendEmail

      public void sendEmail(String to, String subject, EmailTemplate emailTemplate, Map<String,Object> templateValues)
      Sends an email to the recipient at the given to address.
      Specified by:
      sendEmail in interface EmailService
      Parameters:
      to - recipient
      subject - email subject
      emailTemplate - EmailTemplate
      templateValues - variables
    • getRequiredEnvVar

      protected String getRequiredEnvVar(String key)
      Resolves an environment variable by checking dotenv first, then the process environment.
      Parameters:
      key - environment variable key
      Returns:
      environment variable