When sending emails, the following Mime Types and File Extensions are supported for attachments:

{"aac", new List<string>(){"audio/aac"}},
{"abw", new List<string>(){"application/x-abiword"}},
{"arc", new List<string>(){"application/x-freearc" }},
{"avif", new List<string>(){"image/avif"}},
{"avi", new List<string>(){"video/x-msvideo"}},
{"azw", new List<string>(){"application/vnd.amazon.ebook"}},
{"bin", new List<string>(){"application/octet-stream"}},
{"bmp", new List<string>(){"image/bmp"}},
{"bz", new List<string>(){"application/x-bzip"}},
{"bz2", new List<string>(){"application/x-bzip2"}},
{"cda", new List<string>(){"application/x-cdf"}},
{"csh", new List<string>(){"application/x-csh"}},
{"css", new List<string>(){"text/css"}},
{"csv", new List<string>(){"text/csv"}},
{"doc", new List<string>(){"application/msword"}},
{"docx", new List<string>(){"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}},
{"eot", new List<string>(){"application/vnd.ms-fontobject"}},
{"epub", new List<string>(){"application/epub+zip"}},
{"gz", new List<string>(){"application/gzip"}},
{"gif", new List<string>(){"image/gif"}},
{"htm", new List<string>(){"text/html"}},
{"html", new List<string>(){"text/html"}},
{"ico", new List<string>(){ "image/vnd.microsoft.icon"}},
{"ics", new List<string>(){"text/calendar"}},
{"jar", new List<string>(){"application/java-archive"}},
{"jpeg", new List<string>(){ "image/jpeg", "application/photoshop"}},
{"jpg", new List<string>(){"image/jpeg", "application/photoshop"}},
{"js", new List<string>(){"text/javascript"}},
{"json", new List<string>(){"application/json" }},
{"jsonld", new List<string>(){"application/ld+json" }},
{"mid", new List<string>(){"audio/midi","audio/x-midi"}},
{"midi", new List<string>(){"audio/midi","audio/x-midi"}},
{"mjs", new List<string>(){"text/javascript"}},
{"mp3", new List<string>(){"audio/mpeg"}},
{"mp4", new List<string>(){"video/mp4"}},
{"mpeg", new List<string>(){"video/mpeg"}},
{"mpkg", new List<string>(){"application/vnd.apple.installer+xml" }},
{"odp", new List<string>(){"application/vnd.oasis.opendocument.presentation"}},
{"ods", new List<string>(){"application/vnd.oasis.opendocument.spreadsheet"}},
{"odt", new List<string>(){"application/vnd.oasis.opendocument.text"}},
{"oga", new List<string>(){"audio/ogg"}},
{"ogv", new List<string>(){"video/ogg"}},
{"ogx", new List<string>(){"application/ogg"}},
{"opus", new List<string>(){"audio/opus"}},
{"otf", new List<string>(){"font/otf"}},
{"png", new List<string>(){"image/png"}},
{"pdf", new List<string>(){"application/pdf"}},
{"php", new List<string>(){"application/x-httpd-php"}},
{"ppt", new List<string>(){"application/vnd.ms-powerpoint"}},
{"pptx", new List<string>(){"application/vnd.openxmlformats-officedocument.presentationml.presentation"}},
{"rar", new List<string>(){"application/vnd.rar"}},
{"rtf", new List<string>(){"application/rtf"}},
{"sh", new List<string>(){"application/x-sh"}},
{"svg", new List<string>(){"image/svg+xml"}},
{"tar", new List<string>(){"application/x-tar"}},
{"tif", new List<string>(){"image/tiff"}},
{"tiff", new List<string>(){"image/tiff"}},
{"ts", new List<string>(){"video/mp2t"}},
{"ttf", new List<string>(){"font/ttf"}},
{"txt", new List<string>(){"text/plain"}},
{"vsd", new List<string>(){"application/vnd.visio"}},
{"wav", new List<string>(){"audio/wav"}},
{"weba", new List<string>(){"audio/webm"}},
{"webm", new List<string>(){"video/webm"}},
{"webp", new List<string>(){"image/webp"}},
{"woff", new List<string>(){"font/woff"}},
{"woff2", new List<string>(){"font/woff2"}},
{"xhtml", new List<string>(){"application/xhtml+xml"}},
{"xls", new List<string>(){"application/vnd.ms-excel"}},
{"xlsx", new List<string>(){"application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}},
{"xml", new List<string>(){"application/xml", "text/xml" , "application/atom+xml"}},
{"xul", new List<string>(){"application/vnd.mozilla.xul+xml"}},
{"zip", new List<string>(){"application/zip"}},
{"3gp", new List<string>(){"audio/3gpp", "video/3gpp"}},
{"3g2", new List<string>(){"audio/3gpp2", "video/3gpp2"}},
{"7z",  new List<string>(){"application/x-7z-compressed"}}
CODE