Not exactly sure if this is what you were asking for. But here is an entry we currently use to email error logs. This works for individual logs. If you are asking about how to attach a file to an email then this wouldn't help you to do that
#************************************************************************** # SMTP Appender # attention: make sure mail.jar and activation.jar are in your classpath #************************************************************************** log4j.appender.errorSMTP=org.apache.log4j.net.SMTPAppender log4j.appender.errorSMTP.Subject=Help log4j.appender.errorSMTP.SMTPHost=mailserver.net log4j.appender.errorSMTP.layout=org.apache.log4j.PatternLayout log4j.appender.errorSMTP.layout.ConversionPattern=%c - %m%n
|
Title: SMTPAppender
- SMTPAppender Ahlin, Mattias
- Re: SMTPAppender Ayehou Mesfin
- RE: SMTPAppender Ahlin, Mattias
- RE: SMTPAppender Ceki Gülcü
- SMTPAppender Baltasar
- Re: SMTPAppender Ceki Gülcü
- SMTPAppender Nik Brajkovic
- SMTPAppender Gray Jones
- SMTPAppender Boudreau, Mike
- RE: SMTPAppender Boudreau, Mike
- Re: SMTPAppender james . snyder
- RE: SMTPAppender james . snyder
- SMTPAppender Luc_Bell
- SMTPAppender Adams, Dick W [PCS]
- smtpappender Jain, Siddharth (ODC - Satyam)