Class CmsMailTransport

java.lang.Object
java.lang.Thread
org.opencms.mail.CmsMailTransport
All Implemented Interfaces:
Runnable

public class CmsMailTransport extends Thread
Sends an email using a Thread, so that the application can continue without waiting for the mail to be send.

Since:
6.0.0
  • Constructor Details

    • CmsMailTransport

      public CmsMailTransport(org.apache.commons.mail.Email email)
      Creates a new CmsMailTransport.

      Parameters:
      email - the email to be send with this transport
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
      See Also:
    • send

      public void send()
      Sends the email in this transport object, same as calling start().