Bug 23438

Summary: Allow setting non-standard SMTP port.
Product: Taglibs Reporter: Dimitri <ochkarik>
Component: Mailer TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal CC: martinc
Priority: P3 Keywords: PatchAvailable
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: New PortTag implementation.
Patch to MailTag.java.
Patch to mailer.xml.

Description Dimitri 2003-09-26 14:21:11 UTC
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.
Comment 1 Martin Cooper 2003-12-10 06:31:38 UTC
Created attachment 9481 [details]
New PortTag implementation.
Comment 2 Martin Cooper 2003-12-10 06:33:47 UTC
Created attachment 9482 [details]
Patch to MailTag.java.
Comment 3 Martin Cooper 2003-12-10 06:35:24 UTC
Created attachment 9483 [details]
Patch to mailer.xml.
Comment 4 Martin Cooper 2003-12-10 06:37:21 UTC
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.
Comment 5 Martin Cooper 2004-01-29 05:20:27 UTC
Fixed in the 20040129 nightly build.