Session.getDefaultInstance(props, new MailAuthenticator(user, password)); This code overrides the Properties Class and sets the mail SMPT server back to localhost. If localhost is not running SMTP server then the email is not sent and an error is thrown. Use this instead sessionobj = Session.getInstance(props, new MailAuthenticator(user, password)); on all such occurencies.
Created attachment 9112 [details] A taglibs-mailer.jar with the correct MailTag.class
Created attachment 9458 [details] Patch to resolve this issue.
*** Bug 24321 has been marked as a duplicate of this bug. ***
Fixed in the 20040129 nightly build.
Unfixed in the 20040130 nightly build. The change was vetoed by Glenn Nielsen, since getDefaultInstance() was used intentionally in order that the tag could be used in a virtual hosted environment. We need a solution that can satisfy both sets of conditions, so I'm reopening this bug report in the meantime. Glenn's message is here: http://nagoya.apache.org/eyebrowse/ReadMsg?listName=taglibs- dev@jakarta.apache.org&msgNo=6399
Added right URL: http://nagoya.apache.org/eyebrowse/ReadMsg?listName=taglibs-dev@jakarta.apache.org&msgNo=6399
Resolving. Taglib has been retired.