How can I batch create gmail addresses for my class?

I want to create gmail (or using a Chinese email service like Sina.com) accounts for everyone in the class. I want to then create a user account for each student.

Is there a way to automate this process?