Пример #1
0
        public void DebugDump()
        {
            string html = "";

            if (Subject.IsNotBlank())
            {
                html += "Subject: " + Subject.HtmlEncode() + "<br>";
            }
            if (FromAddress.IsNotBlank())
            {
                html += "FromAddress: " + FromAddress.HtmlEncode() + "<br>";
            }
            if (FromName.IsNotBlank())
            {
                html += "FromName: " + FromName.HtmlEncode() + "<br>";
            }
            if (ToAddress.IsNotBlank())
            {
                html += "ToAddress: " + ToAddress.HtmlEncode() + "<br>";
            }
            if (ToName.IsNotBlank())
            {
                html += "ToName: " + ToName.HtmlEncode() + "<br>";
            }
            if (CC.IsNotBlank())
            {
                html += "CC: " + CC.HtmlEncode() + "<br>";
            }
            if (BCC.IsNotBlank())
            {
                html += "BCC: " + BCC.HtmlEncode() + "<br>";
            }
            if (BodyHtml.IsNotBlank())
            {
                html += "BodyHtml: " + BodyHtml + "<br>";
            }
            if (BodyPlain.IsNotBlank())
            {
                html += "BodyPlain: " + BodyPlain.HtmlEncode() + "<br>";
            }
            Web.Write(html);
        }