Hi there,

I'm new to the group - have been mucking with Jetspeed et al recently. I 
noticed that setting the mail.server property in TurbineResources.properties 
was having no effect, so dug around and saw that the properties.put calls
(below) were failing silently. Javamail appeared to be using localhost as
the mail relay by default.

Can someone please commit this? 

Much appreciated, 
Tim

Index: Email.java
===================================================================
RCS file: 
/products/cvs/turbine/turbine/src/java/org/apache/turbine/util/mail/Email.java,v
retrieving revision 1.6
diff -u -r1.6 Email.java
--- Email.java  2000/03/13 05:44:39     1.6
+++ Email.java  2000/06/22 01:41:11
@@ -103,7 +103,7 @@
        
        private Session getMailSession()
        {
-               Properties properties = System.getProperties();
+               Properties properties = new Properties();
                properties.put ( MAIL_TRANSPORT_PROTOCOL, SMTP );
                properties.put ( MAIL_HOST, TurbineResources.getString( MAIL_SERVER ) 
);
                return Session.getDefaultInstance(properties, null);











------------------------------------------------------------------------------
This message and any attachment is confidential and may be privileged or otherwise 
protected from disclosure.  If you have received it by mistake please let us know by 
reply and then delete it from your system; you should not copy the message or disclose 
its contents to anyone.






------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to