Package org.subethamail.smtp.server

Examples of org.subethamail.smtp.server.SMTPServer.start()


        return false;
      }
    });
    SMTPServer smtpServer = new SMTPServer(handlerFactory);
    smtpServer.setPort(0);
    smtpServer.start();
    try
    {
      SmartClient client = new SmartClient("localhost", smtpServer.getPort(), "test-client.example.org");
      client.from("john@exmaple.com");
      client.to("jane@example.org");
View Full Code Here


   
    MockMessageHandlerFactory myFactory2 = new MockMessageHandlerFactory();
    MockAuthenticationHandlerFactory myAuthFactory2 = new MockAuthenticationHandlerFactory();
    SMTPServer smtpServer2 = new SMTPServer(myFactory2, myAuthFactory2);
        smtpServer2.setPort(25001);
        smtpServer2.start();
   
    MailConfig originaryConfig = this._mailManager.getMailConfig();
    try {
      MailConfig config = this._mailManager.getMailConfig();
      config.setSmtpPort(25001);
View Full Code Here

    smtpServer.setHostName("localhost");
    smtpServer.setPort(5000);
    TestPluginLifeCycle lifeCycle = createLifeCycle();
    try {
      lifeCycle.start();
      smtpServer.start();
      execute(lifeCycle, wiser);
    }
    finally {
      smtpServer.stop();
      lifeCycle.stop();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.