Class EmailSender
java.lang.Object
java.lang.Thread
org.wso2.carbon.email.verification.util.EmailSender
- All Implemented Interfaces:
Runnable
The thread responsible for sending emails.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionEmailSender(EmailVerifierConfig config, String emailAddr, String secretKey) EmailSender(EmailVerifierConfig config, String emailAddr, String secretKey, String tenantDomain) EmailSender(EmailVerifierConfig config, String emailAddr, String secretKey, String tenantDomain, Map<String, String> userParameters) -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
CONF_STRING
- See Also:
-
-
Constructor Details
-
EmailSender
-
EmailSender
public EmailSender(EmailVerifierConfig config, String emailAddr, String secretKey, String tenantDomain) -
EmailSender
-
-
Method Details
-
sendEmail
public void sendEmail() -
run
public void run() -
replacePlaceHolders
Replace the {user-parameters} in the config file with the respective values- Parameters:
text- the initial textuserParameters- mapping of the key and its value- Returns:
- the final text to be sent in the email
-