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=37970>.
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=37970
Summary: MailTask cannot be used with different mail hosts
Product: Ant
Version: 1.6.5
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: b.eicki@gmx.net
I use the mail task within a webapplication and my user can configure the
mailhost to use within the application, i.e. without the need of restarting the
server.
If now no username and password is supplied, i.e. no authenticator is used, he
cannot change the host without restarting the server.
The cause for this is that in the MimeMailer class for this case
Session.getDefaultInstance(props, null) is called which does not instanciate a
new session if the properties change. So just switching to a call of
Session.getInstance(props, null) would work fine for me.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
|