Connect college email to iPhone?

I'm trying to connect my school email to my iPhone. It is a gmail account that is accessed by entering the school's portal first. Because of this, going to Settings>Mail, Contacts, Calendars>Add Account>Google does not work as it asks for my email which is username@student.smc.edu and leads to the portal.

Trying: Settings>Mail, Contacts, Calendars>Add Account>Other>Add Mail Account does not work because it doesn't recognize the IMAP.

Has anyone else experienced this problem and found a solution?

You need to contact the schools helpdesk. No one here knows how their email is setup.