On Gmail, this tool is called vacation responder. You can set up this automated message on the Gmail desktop website or mobile app, and even share your out-of-office status with others.