public static void SendEmail(String from, String To, String Subject, String HTML, String AttachmentPath = null, String AttachmentName = null, MediaTypeNames AttachmentTy
You can't pass a static type to a method as a parameter because then it would have to be instantiated, and you can't create an instance of a static class.
static