Class EmailSender

java.lang.Object
java.lang.Thread
org.wso2.carbon.email.verification.util.EmailSender
All Implemented Interfaces:
Runnable

public class EmailSender extends Thread
The thread responsible for sending emails.
  • Field Details

  • Constructor Details

  • Method Details

    • sendEmail

      public void sendEmail()
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • replacePlaceHolders

      public static String replacePlaceHolders(String text, Map<String,String> userParameters)
      Replace the {user-parameters} in the config file with the respective values
      Parameters:
      text - the initial text
      userParameters - mapping of the key and its value
      Returns:
      the final text to be sent in the email