<configuration>

  <appender name="SMTP" class="ch.qos.logback.classic.net.SMTPAppender">
    <layout class="ch.qos.logback.classic.html.HTMLLayout">
      <pattern>%relative%thread%mdc%level%class%msg</pattern>
      <throwableRenderer class="ch.qos.logback.classic.html.DefaultThrowableRenderer" />      
    </layout>
    <from>sender_email@host.ch</from>                          
    <SMTPHost>mail.host.ch</SMTPHost>
    
    <subject>Last Event: %-10logger %nopex</subject>
    
    <to>recipient_email@host.ch</to>
  </appender>

  <root level="debug">
    <appender-ref ref="SMTP" />
  </root>
</configuration>

