I take it this means all students from a class will be emailed every time?

I think it would be better to have 3 params on the method (or maybe just 2) so as sendStudentEmail is analogous to just sending one student email. A utility function could then be strapped on top to loop over all students for a given cid. I've posted pseudo below in email.go