Class SubethaSMTP


  • public class SubethaSMTP
    extends java.lang.Object
    Simple server bean which can be started on Spring context creation and shutdown when the application is editing. The MessageHandlerFactory implementation which is passed to the server is critical in deciding what will happen with the email.
    Since:
    5.1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DEFAULT_PORT  
    • Constructor Summary

      Constructors 
      Constructor Description
      SubethaSMTP​(org.subethamail.smtp.MessageHandlerFactory factory)  
      SubethaSMTP​(org.subethamail.smtp.MessageHandlerFactory factory, int port)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void start()  
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SubethaSMTP

        public SubethaSMTP​(org.subethamail.smtp.MessageHandlerFactory factory)
      • SubethaSMTP

        public SubethaSMTP​(org.subethamail.smtp.MessageHandlerFactory factory,
                           int port)
    • Method Detail

      • start

        public void start()
      • stop

        public void stop()