In entrambi i casi suggeriti da Rino e xsuriv il messaggio è:

cannot locate host smtp.gmail.com: Name or service not known

eppure l'host deve essere quello !