Also, I noticed after sending in the patch that instead of checking if smtpPort != 25 before setting the mail.smtp.port property, it would be better to use the constant I defined, i.e. if (smtpPort != DEFAULT_SMTP_PORT)

thanks!

Moses

On Feb 10, 2004, at 5:08 PM, Paul Smith wrote:

On Wed, 2004-02-11 at 09:41, Moses Hohman wrote:
Hi,

Providing the ability to use a nonstandard port with SMTPAppender is
useful for unit testing. I have attached a patch that provides this
option. Could this be considered for incorporation into log4j?

This is a good idea. Does anyone have a preference for the actual property name? (eg. SMTPPort vs. Port). All the other Socket-based appenders use Port I believe, and there might be some value in keeping it standard.

But otherwise I think it's a good addition to 1.3.

cheers,

Paul Smith


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to