logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cooper, Henry J." <henry.coo...@sourcenetsolutions.com>
Subject SMTPAppender exception
Date Tue, 11 Sep 2001 18:58:52 GMT
Hello,
I'm having trouble with the SMTPAppender. Hope someone can help. When I use
the SMTPAppender I get the following error: 
log4j:ERROR Error occured while sending e-mail notification.
javax.mail.NoSuchProviderException: No provider for Address type: rfc822
at javax.mail.Session.getTransport(Session.java:475)
at javax.mail.Transport.send0(Transport.java:154)
at javax.mail.Transport.send(Transport.java:80)
at org.apache.log4j.net.SMTPAppender.sendBuffer(SMTPAppender.java:346)

My config entries look like:
log4j.appender.SMTP=org.apache.log4j.net.SMTPAppender
log4j.appender.SMTP.layout=org.apache.log4j.PatternLayout
log4j.appender.SMTP.layout.ConversionPattern=%d %-5p [%t] %c{2} - %m%n
log4j.appender.SMTP.To=henry.cooper@sourcenetsolutions.com
log4j.appender.SMTP.SMTPHost=smtpsvr
log4j.appender.SMTP.Subject=ERROR OCCURRED!
log4j.appender.SMTP.From=henry.cooper@sourcenetsolutions.com
log4j.appender.SMTP.BufferSize=1

thanx-
Henry

Mime
View raw message