Enterprise Library: Logging Block and Email

后端 未结 1 995
庸人自扰
庸人自扰 2021-01-02 16:57

Does anyone have a tutorial link or an example on how to use the Logging block to send out error email?

Jack

1条回答
  •  被撕碎了的回忆
    2021-01-02 17:53

    You need to set up an EmailTraceListener in the Logging Application Block.

    You can use the Enterprise Library UI but the web.config section ends up looking something like this:

    
        
          
        
        
          
            
              
            
              
        
    
    

    This will work providing your SMTP server is set up correctly. You can use Telnet to check that by sending command line email.

    0 讨论(0)
提交回复
热议问题