Although you can telnet to Google SMTP server on port 25, you cannot send mails using that port. Google only accepts mails on port 465 instead of 25. That's why the command is failing. If you have a Gmail account yourself, check under Settings, Forwarding and POP/IMAP, configuration instructions. There you'll find the necessary information.