You have not setup DNS in the TCP/IP settings of the printer, so it can't resolve the server that is smtp.gmail.com in order to communicate with it.
EWS > Connectivity > Ethernet and then Edit the DNS section
If you don't know what the DNS servers are, a typically safe bet is to use the Gateway address as the Primary Server and 8.8.8.8 as the secondary