Posts by Jeff

11 Mar 2012, 08:19
Generic-user-small

Jeff (2 posts)

(from Arduino > CH8 problems with command line email)

In this project I can’t send email from the command line. I’m on Windows 7, and using the standard command prompt (I’ve installed the telnet client).
The nslookup gives similar data to what you show but I can’t connect to the server. I’ve tried several of the servers listed, (ie I also tried alt1.gmail-.. etc), and I also tried smtp.gmail.com. I also tried two other ports that gmail seems to use – 465 and 587. In all cases I get an error message saying it can’t connect.
I also found some info that seems to indicate telnet can’t be used since it needs an ssl connection.
Any help would be appreciated! Thanks.

12 Mar 2012, 09:34
Generic-user-small

Jeff (2 posts)

(from Arduino > CH8 problems with command line email)

Hi Maik, thanks for the response.
I tried what you suggested, it works – returns a time string.
Here is a sample of what I get after telnet to time.nist.gov, then google:

55998 12-03-12 09:25:40 50 0 0 703.1 UTC *

C:\>ection to host lost.
C:\>
C:\>telnet gmail-smtp-in.l.google.com 25
Connecting To gmail-smtp-in.l.google.com…Could not open connection to the host, on port 25: Connect failed

C:\>
It hangs for about 10 seconds trying to connect. I also tried on another machine with Windows XP, and get exactly the same. Also I can ping the gmail server successfully.
Hope that might help solve the problem! Thanks.

2 posts