Class SendMailEngine

java.lang.Object
org.ametys.plugins.newsletter.workflow.SendMailEngine
All Implemented Interfaces:
Runnable

public class SendMailEngine extends Object implements Runnable
Sends mails in a thread
  • Constructor Details

  • Method Details

    • parameterize

      public void parameterize(String subject, String htmlBody, String textBody, Map<String,String> recipients, String sender)
      Parameterize engine
      Parameters:
      subject - The mail subject
      htmlBody - The mail body in HTML format
      textBody - The mail body in text format
      recipients - The recipient addresses
      sender - The sender address
    • run

      public void run()
      Specified by:
      run in interface Runnable