Exemplo n.º 1
0
 public void StoreValues(Data data, string path)
 {
     data.SetValue(@"" + path + @"AddSignature", AddSignature.ToString());
     data.SetValue(@"" + path + @"Content", Data.EscapeString(Content));
     data.SetValue(@"" + path + @"Enabled", Enabled.ToString());
     data.SetValue(@"" + path + @"Recipients", Data.EscapeString(Recipients));
     data.SetValue(@"" + path + @"Subject", Data.EscapeString(Subject));
 }
Exemplo n.º 2
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("AddSignature=" + AddSignature.ToString());
            sb.AppendLine("Content=" + Content.ToString());
            sb.AppendLine("Enabled=" + Enabled.ToString());
            sb.AppendLine("Recipients=" + Recipients.ToString());
            sb.AppendLine("Subject=" + Subject.ToString());

            return(sb.ToString());
        }
Exemplo n.º 3
0
 public void StoreValues(Data data, string path)
 {
     data.SetValue(@"" + path + @"AddSignature", AddSignature.ToString());
     data.SetValue(@"" + path + @"Address", Data.EscapeString(Address));
     data.SetValue(@"" + path + @"Content", Data.EscapeString(Content));
     data.SetValue(@"" + path + @"Enabled", Enabled.ToString());
     data.SetValue(@"" + path + @"Password", _password);
     data.SetValue(@"" + path + @"Port", Port.ToString(CultureInfo.InvariantCulture));
     data.SetValue(@"" + path + @"Recipients", Data.EscapeString(Recipients));
     data.SetValue(@"" + path + @"SameTextAsClientMail", SameTextAsClientMail.ToString());
     data.SetValue(@"" + path + @"Server", Data.EscapeString(Server));
     data.SetValue(@"" + path + @"Ssl", Ssl.ToString());
     data.SetValue(@"" + path + @"Subject", Data.EscapeString(Subject));
     data.SetValue(@"" + path + @"UserName", Data.EscapeString(UserName));
 }
Exemplo n.º 4
0
 public void StoreValues(Data data, string path)
 {
     data.SetValue(@"" + path + @"AddSignature", AddSignature.ToString());
     for (int i = 0; i < AdditionalAttachments.Count; i++)
     {
         data.SetValue(path + @"AdditionalAttachments\" + i + @"\AdditionalAttachments", Data.EscapeString(AdditionalAttachments[i]));
     }
     data.SetValue(path + @"AdditionalAttachments\numClasses", AdditionalAttachments.Count.ToString());
     data.SetValue(@"" + path + @"Content", Data.EscapeString(Content));
     data.SetValue(@"" + path + @"Enabled", Enabled.ToString());
     data.SetValue(@"" + path + @"Html", Html.ToString());
     data.SetValue(@"" + path + @"Recipients", Data.EscapeString(Recipients));
     data.SetValue(@"" + path + @"RecipientsBcc", Data.EscapeString(RecipientsBcc));
     data.SetValue(@"" + path + @"RecipientsCc", Data.EscapeString(RecipientsCc));
     data.SetValue(@"" + path + @"Subject", Data.EscapeString(Subject));
 }
Exemplo n.º 5
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("AddSignature=" + AddSignature.ToString());
            sb.AppendLine("Address=" + Address.ToString());
            sb.AppendLine("Content=" + Content.ToString());
            sb.AppendLine("Enabled=" + Enabled.ToString());
            sb.AppendLine("Password="******"Port=" + Port.ToString());
            sb.AppendLine("Recipients=" + Recipients.ToString());
            sb.AppendLine("SameTextAsClientMail=" + SameTextAsClientMail.ToString());
            sb.AppendLine("Server=" + Server.ToString());
            sb.AppendLine("Ssl=" + Ssl.ToString());
            sb.AppendLine("Subject=" + Subject.ToString());
            sb.AppendLine("UserName=" + UserName.ToString());

            return(sb.ToString());
        }