It's easy to log out of Gmail on your iPhone by removing your Google account from the device. Here's how to do it.
To set up a Gmail out-of-office reply, go to your Settings and set a start date, end date, and message.