1 17 package org.apache.geronimo.mail; 18 19 import javax.mail.Address ; 20 import javax.mail.Message ; 21 import javax.mail.MessagingException ; 22 import javax.mail.Session ; 23 import javax.mail.Transport ; 24 import javax.mail.URLName ; 25 26 27 30 public class TestTransport extends Transport { 31 32 public TestTransport(Session session, URLName name) { 33 super(session, name); 34 } 35 36 public void sendMessage(Message message, Address [] addresses) throws MessagingException { 37 } 38 39 public boolean isEHLO() { 40 return "true".equals(session.getProperties().getProperty("mail.smtp.ehlo")); 41 } 42 43 public boolean isQuitWait() { 44 return "true".equals(session.getProperties().getProperty("mail.smtp.quitwait")); 45 } 46 } 47 | Popular Tags |