setting up log4j for gmail, does not recognize System.setProperty("mail.smtps.port", "587")
- by Alex Le
Hi
I am trying to setup a smtpappender for log4j using gmail as the smtp host.
I have read that the port number needs to be 465 or 587 (depending on tls or ssl) and that log4j for some reason doesnt allow a different port to be set inside log4j.properties configuration file.
I have read that the best way of doing this would be to use…