hi brian

this is our smtpappender:
        
        <!-- EMail events to an administrator   -->
        <appender name="SMTP_EXCEPTION"
class="org.apache.log4j.net.SMTPAppender">
                <param name="Threshold" value="ERROR"/>
                <param name="To" value="[EMAIL PROTECTED]"/>
                <!--
                <param name="To" value="[EMAIL PROTECTED]"/> 
                -->
                <param name="From" value="[EMAIL PROTECTED]"/>
                <param name="Subject" value="Exception in ....."/>
                <param name="SMTPHost" value="mailhost IP"/>
                <param name="BufferSize" value="10"/>
                <layout class="org.apache.log4j.PatternLayout">
                        <param name="ConversionPattern"
value="[%d{ABSOLUTE},%c{1}] %m%n"/>
                </layout>
        </appender>

<!-- our smtp category -->
        <category name="com.cs.util.misc.EMailableException">
                <appender-ref ref="SMTP_EXCEPTION"/>
        </category>


cheers
lothar


-----Ursprüngliche Nachricht-----
Von: Brian Styles [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 16. Dezember 2003 12:36
An: [EMAIL PROTECTED]
Betreff: [JBoss-user] log4j SMTPAppender


Hi all,

this is the third time I've asked this question. Hopefully someone will know
this time.

Has anyone ever got the log4j SMTPAppender working so that emails are sent
out when an error occurs. If so, how --> it doesn't seem to work for me at
all.

thanks,

Brian

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to