DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32007>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32007

[email] dumpster bogus smtp server fails on tests





------- Additional Comments From [EMAIL PROTECTED]  2004-11-04 15:54 -------
It turns out that the smtp.jar is required dumpster or not, 

even the minimal example below requires smtp.jar to connect to dumpster.. DOHH.. Its 
always the 
simple things.. 

                SimpleSmtpServer server = SimpleSmtpServer.start(2500);
                try {
                
                
                        this.email.setFrom("[EMAIL PROTECTED]");
                        this.email.addTo("[EMAIL PROTECTED]");
                        this.email.setHostName("localhost");
                        this.email.setSmtpPort(2500);
                        this.email.getMailSession().setDebug(true);
                        
                        
                        
                        System.out.println("SMTP is running:"+ !server.isStopped());
                        
                        this.email.send();
                        server.stop();
                        
                } catch (Exception e) {
                        e.printStackTrace();
                        fail("Cant send mail.");
                }

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to