Student emails have been suspended at Mt Albert Grammar after a security breach led to porn being sent to every student.
An official message was sent to parents on Monday night apologising for any offence caused.
Principal Dale Burden said they believed the culprit was most likely to be a student at the school and if so that amounted to serious misconduct.