I've successfully configured SMTPAppender to send email, and am receiving emails, but the "Subject" field is always empty, and the "To" field is always "undisclosed-recipients" rather than the email address of the recipient(s). Am I doing something wrong? Is there a way to set the Subject? All of the other header fields are being honored (e.g. From, SMTPHost, SmtpUsername, etc.).
I'm using log4j-1.2.16 and javamail 1.4.3. Here is my config: log4j.appender.SmtpHandler=org.apache.log4j.net.SMTPAppender log4j.appender.SmtpHandler.threshold=ERROR log4j.appender.SmtpHandler.SMTPHost=mail.<hidden>.com log4j.appender.SmtpHandler.SmtpUsername=<hidden> log4j.appender.SmtpHandler.SmtpPassword=<hidden> log4j.appender.SmtpHandler.Subject=Foo log4j.appender.SmtpHandler.To=<hidden> log4j.appender.SmtpHandler.From=SomeFromValue@<hidden>.com log4j.appender.SmtpHandler.bufferSize=512 log4j.appender.SmtpHandler.layout=org.apache.log4j.PatternLayout Thanks, Brad --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
