Example #1
0
        private void AddRecipent(StringBuilder s, string emails, RecipentType type)
        {
            if (emails == null || string.IsNullOrEmpty(emails))
            {
                return;
            }

            string[] emailList = emails.Split(new char[] { ';' });

            if (emailList.Length == 0)
            {
                return;
            }

            s.Append(type.ToString() + ": ");

            for (int i = 0; i <= emailList.Length - 1; i++)
            {
                s.Append((i > 0 ? "," : ""));
                s.Append(emailList[i]);
            }

            s.Append(Environment.NewLine);
        }
Example #2
0
        private void AddRecipent(StringBuilder s, string emails, RecipentType type)
        {
            if (emails == null || string.IsNullOrEmpty(emails))
            {
                return;
            }

            string[] emailList = emails.Split(new char[] { ';' });

            if (emailList.Length == 0)
            {
                return;
            }

            s.Append(type.ToString() + ": ");

            for (int i = 0; i <= emailList.Length - 1; i++)
            {
                s.Append((i > 0 ? "," : ""));
                s.Append(emailList[i]);
            }

            s.Append(Environment.NewLine);
        }