public static string GenerateBodyForAttachmentNotFound(List <AttachmentFile> attachmentFiles)
        {
            List <string> list  = new List <string>();
            List <string> list2 = new List <string>();
            string        headingText;

            if (attachmentFiles.Count == 1)
            {
                headingText = Strings.OneAttachmentNotFoundInbox;
                list.Add(Strings.OneAttachmentNotFoundSmallText);
                list2.Add(Strings.OneAttachmentNotFoundLargeText);
            }
            else
            {
                headingText = Strings.AttachmentsNotFoundInbox;
                list.Add(Strings.AttachmentsNotFoundSmallText);
                list2.Add(Strings.AttachmentsNotFoundLargeText);
            }
            return(AttachmentMessageBodyGenerator.GenerateNDRBody(headingText, list, attachmentFiles, false, null, list2));
        }
        public static string GenerateBodyForCatchAll(List <AttachmentFile> attachmentFiles)
        {
            List <string> list  = new List <string>();
            List <string> list2 = new List <string>();
            string        headingText;

            if (attachmentFiles.Count == 1)
            {
                headingText = Strings.OneAttachmentCatchAllInbox;
                list.Add(Strings.OneAttachmentCatchAllSmallText);
                string arg = string.Format("<a href=\"{0}\" target=\"_blank\" style=\"text-decoration: none;color:#0072C6\">{1}</a>", attachmentFiles[0].FileURL, attachmentFiles[0].FileName);
                list2.Add(string.Format(Strings.OneAttachmentCatchAllLargeText, arg));
            }
            else
            {
                headingText = Strings.AttachmentsCatchAllInbox;
                list.Add(Strings.AttachmentsCatchAllSmallText);
                list2.Add(Strings.AttachmentsCatchAllLargeText);
            }
            return(AttachmentMessageBodyGenerator.GenerateNDRBody(headingText, list, attachmentFiles, true, null, list2));
        }
        public static string GenerateBodyForSetWrongPermission(List <AttachmentFile> attachmentFiles, List <string> recipients)
        {
            List <string> list  = new List <string>();
            List <string> list2 = new List <string>();
            string        headingText;

            if (attachmentFiles.Count == 1)
            {
                headingText = Strings.OneAttachmentSetWrongPermissionInbox;
                list.Add(Strings.OneAttachmentSetWrongPermissionSmallText);
                list2.Add(Strings.OneAttachmentSetWrongPermissionLargeText1);
                list2.Add(Strings.OneAttachmentSetWrongPermissionLargeText2);
                list2.Add(Strings.OneAttachmentSetWrongPermissionLargeText3);
            }
            else
            {
                headingText = Strings.AttachmentsSetWrongPermissionInbox;
                list.Add(Strings.AttachmentsSetWrongPermissionSmallText);
                list2.Add(Strings.OneAttachmentSetWrongPermissionLargeText1);
                list2.Add(Strings.AttachmentsSetWrongPermissionLargeText2);
                list2.Add(Strings.AttachmentsSetWrongPermissionLargeText3);
            }
            return(AttachmentMessageBodyGenerator.GenerateNDRBody(headingText, list, attachmentFiles, true, recipients, list2));
        }