<bdo id='9MFUb'></bdo><ul id='9MFUb'></ul>

    1. <tfoot id='9MFUb'></tfoot>
    2. <i id='9MFUb'><tr id='9MFUb'><dt id='9MFUb'><q id='9MFUb'><span id='9MFUb'><b id='9MFUb'><form id='9MFUb'><ins id='9MFUb'></ins><ul id='9MFUb'></ul><sub id='9MFUb'></sub></form><legend id='9MFUb'></legend><bdo id='9MFUb'><pre id='9MFUb'><center id='9MFUb'></center></pre></bdo></b><th id='9MFUb'></th></span></q></dt></tr></i><div id='9MFUb'><tfoot id='9MFUb'></tfoot><dl id='9MFUb'><fieldset id='9MFUb'></fieldset></dl></div>

      <legend id='9MFUb'><style id='9MFUb'><dir id='9MFUb'><q id='9MFUb'></q></dir></style></legend>

      1. <small id='9MFUb'></small><noframes id='9MFUb'>

        Log4net html 格式化的 SmtpAppender

        Log4net html formatted SmtpAppender(Log4net html 格式化的 SmtpAppender)
          <bdo id='hWKHw'></bdo><ul id='hWKHw'></ul>

              <tbody id='hWKHw'></tbody>
          1. <tfoot id='hWKHw'></tfoot>

            • <i id='hWKHw'><tr id='hWKHw'><dt id='hWKHw'><q id='hWKHw'><span id='hWKHw'><b id='hWKHw'><form id='hWKHw'><ins id='hWKHw'></ins><ul id='hWKHw'></ul><sub id='hWKHw'></sub></form><legend id='hWKHw'></legend><bdo id='hWKHw'><pre id='hWKHw'><center id='hWKHw'></center></pre></bdo></b><th id='hWKHw'></th></span></q></dt></tr></i><div id='hWKHw'><tfoot id='hWKHw'></tfoot><dl id='hWKHw'><fieldset id='hWKHw'></fieldset></dl></div>

                  <small id='hWKHw'></small><noframes id='hWKHw'>

                  <legend id='hWKHw'><style id='hWKHw'><dir id='hWKHw'><q id='hWKHw'></q></dir></style></legend>
                  本文介绍了Log4net html 格式化的 SmtpAppender的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试以 HTML 格式向我发送电子邮件.

                  I am trying to send me email in HTML format.

                      <appender name="SmtpAppender" type="log4net.Appender.SmtpAppender">
                  
                    <to value="zzz@zzz.com"/>
                    <from value="do_not_reply@zz.com"/>
                    <subject value="zzzAdmin Logged Event" />
                    <smtpHost value="email.zzz.com"/>
                    <bufferSize value="1"/>
                    <lossy value="false"/>
                    <authentication value="Basic" />
                  

                  我将错误记录为 html 格式的文本,但电子邮件客户端将 HTML 呈现为纯文本.

                  I log the error as html formatted text, but the email clients render the HTML as plain text.

                  如何告诉 SMTPAppender 向电子邮件添加 HTML 类型,以便客户端将消息呈现为 HTML.

                  How can I tell the SMTPAppender to add an HTML type to the email message so clients will render the message as the HTML that it is.

                  推荐答案

                  内置的 SmtpAppender 不支持这个,所以你需要滚动你自己的 appender.

                  The built in SmtpAppender does not support this so you will need to roll your own appender.

                  这篇关于Log4net html 格式化的 SmtpAppender的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)
                  How to store delegates in a List(如何将代表存储在列表中)
                  Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)
                  CreateDelegate with unknown types(具有未知类型的 CreateDelegate)
                  Does Funclt;Tgt;.BeginInvoke use the ThreadPool?(Funclt;Tgt;.BeginInvoke 使用线程池吗?)
                  How to create a delegate to an instance method with a null target?(如何为具有空目标的实例方法创建委托?)
                      <tbody id='3koSe'></tbody>
                    <i id='3koSe'><tr id='3koSe'><dt id='3koSe'><q id='3koSe'><span id='3koSe'><b id='3koSe'><form id='3koSe'><ins id='3koSe'></ins><ul id='3koSe'></ul><sub id='3koSe'></sub></form><legend id='3koSe'></legend><bdo id='3koSe'><pre id='3koSe'><center id='3koSe'></center></pre></bdo></b><th id='3koSe'></th></span></q></dt></tr></i><div id='3koSe'><tfoot id='3koSe'></tfoot><dl id='3koSe'><fieldset id='3koSe'></fieldset></dl></div>
                    • <bdo id='3koSe'></bdo><ul id='3koSe'></ul>
                      • <small id='3koSe'></small><noframes id='3koSe'>

                        <tfoot id='3koSe'></tfoot>

                        1. <legend id='3koSe'><style id='3koSe'><dir id='3koSe'><q id='3koSe'></q></dir></style></legend>