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=28485>. 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=28485 Cannot change SMTP in MailMessageSender after first initialisation of Session ------- Additional Comments From [EMAIL PROTECTED] 2004-07-06 03:57 ------- Unfortunately the above change makes no difference since a session has already been created (in which case properties is completely ignored). We are now using the latest component version of MailMessageSender (v1.12) so we can just specify smtp-host in cocoon.xconf for the mailSender component and it is set on initialisation. However, it should be noted that once this has been initialised, smtphost cannot be changed by calling org.apache.cocoon.mail.MailMessageSender("myMailServer"); It may be possible using getInstance instead of getDefaultInstance although I haven't had any luck with this myself.
