Bug 23438 - Allow setting non-standard SMTP port.
Summary: Allow setting non-standard SMTP port.
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Mailer Taglib (show other bugs)
Version: unspecified
Hardware: All All
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Keywords: PatchAvailable
Depends on:
Reported: 2003-09-26 14:21 UTC by Dimitri
Modified: 2004-11-16 19:05 UTC (History)
1 user (show)

New PortTag implementation. (4.83 KB, text/plain)
2003-12-10 06:31 UTC, Martin Cooper
Patch to MailTag.java. (2.54 KB, patch)
2003-12-10 06:33 UTC, Martin Cooper
Details | Diff
Patch to mailer.xml. (1.64 KB, patch)
2003-12-10 06:35 UTC, Martin Cooper
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.