jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mart...@apache.org
Subject cvs commit: jakarta-taglibs/mailer/src/org/apache/taglibs/mailer MailTag.java
Date Fri, 30 Jan 2004 03:50:40 GMT
martinc     2004/01/29 19:50:40

  Modified:    mailer/src/org/apache/taglibs/mailer MailTag.java
  Log:
  Revert change to use getInstance() instead of getDefaultInstance(), since
  the latter is needed in a virtual hosted environment.
  
  Revision  Changes    Path
  1.14      +5 -5      jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/MailTag.java
  
  Index: MailTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/MailTag.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- MailTag.java	29 Jan 2004 07:22:22 -0000	1.13
  +++ MailTag.java	30 Jan 2004 03:50:40 -0000	1.14
  @@ -425,10 +425,10 @@
                       // create the session with an authenticator object
                       // better way to do authentication
                       props.put("mail.smtp.auth", "true");
  -                    sessionobj = Session.getInstance(props,
  +                    sessionobj = Session.getDefaultInstance(props,
                                            new MailAuthenticator(user, password));
               } else
  -                sessionobj = Session.getInstance(props, null);
  +                sessionobj = Session.getDefaultInstance(props, null);
   
               message = new MimeMessage(sessionobj);
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


Mime
View raw message