<appender name="MAIL" class="ch.qos.logback.classic.net.SMTPAppender">
        <smtpHost>smtp.mxhichina.com</smtpHost>
        <smtpPort>465</smtpPort>
        <SSL>true</SSL>
        <to>to@test.com</to>
        <from>ABC Finance Manager &lt;from@test.com&gt;</from>
        <username>from@test.com</username>
        <password>from_password</password>
        <subject>ERROR: %logger{20} - %m</subject>
        <evaluator class="ch.qos.logback.classic.boolex.OnErrorEvaluator" />
        <layout class="ch.qos.logback.classic.html.HTMLLayout"/>
        <cyclicBufferTracker class="ch.qos.logback.core.spi.CyclicBufferTracker">
            <bufferSize>1</bufferSize>
        </cyclicBufferTracker>
    </appender>
    <root level="DEBUG">
        <appender-ref ref="MAIL"/>
    </root>