Class SimpleEmailService
java.lang.Object
com.bluebell.greenhouse.radicle.services.email.impl.SimpleEmailService
- All Implemented Interfaces:
EmailService
- Direct Known Subclasses:
ScheduledJobEmailService
Implementation of the
EmailService for sending emails about Jobs.- Version:
- 2.0.3
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetRequiredEnvVar(String key) Resolves an environment variable by checking dotenv first, then the process environment.voidsendEmail(String to, String subject, EmailTemplate emailTemplate, Map<String, Object> templateValues) Sends an email to the recipient at the given to address.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EmailService
getSystemRecipient
-
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:
sendEmailin interfaceEmailService- Parameters:
to- recipientsubject- email subjectemailTemplate-EmailTemplatetemplateValues- variables
-
getRequiredEnvVar
-