private ScannerResult CheckSocialMedia(ScannerRequest request, StringBuilder sb, StringBuilder linkBuilder = null) { ScannerResult result = SocialMedia.Check(request); if (result.Success) { sb.Append("\tDormant social media accounts found! " + String.Join(", " + Environment.NewLine, result.Results.ToArray()) + "! Email sent." + Environment.NewLine); SendEmail("Dormant Social Media Used", request.URL + " appears to use dormant social media accounts " + String.Join(Environment.NewLine, result.Results.ToArray())); if (linkBuilder != null) { linkBuilder.Append(String.Join(Environment.NewLine, result.Results.ToArray()) + Environment.NewLine); } } else { sb.Append("\tNo dormant social media accounts found." + Environment.NewLine); } return(result); }