Mailer taglib cannot be used in that (rather rare) use case when we need both SMTP authentication and SMTP server is running on non-standard port (other than 25). SMTP port can be set if we pre-configure JNDI mail session, but password can't be provided that way, and, vice versa, username & password can be supplied as tag attributes, but there is no way to set SMTP ports via tags. If mail session is pre-configured and resolved via JNDI, tags do not apply to this session.
Created attachment 9481 [details] New PortTag implementation.
Created attachment 9482 [details] Patch to MailTag.java.
Created attachment 9483 [details] Patch to mailer.xml.
Added patches to support a 'port' attribute on the <mail> tag, and a <port> tag similar to the <server> tag, to satisfy this enhancement request.
Fixed in the 20040129 nightly build.