The default Mail app only allows you to set up automated responses for Microsoft Exchange email accounts. If you use Gmail on your iPhone, you can set up out of office responses in the Gmail app.