public static void SendEmail(String from, String To, String Subject, String HTML, String AttachmentPath = null, String AttachmentName = null, MediaTypeNames AttachmentTy
Use a different type for the argument.
A method argument needs to be of a type that can accept a reference to an instance, so it can't be a static class.