I am using Blat that is command line tool for sending the mail from command.
First I run the install command to store the mail server which create the entry in registry like that.........
First I was set the SMTP server to smtp.mail.yahoo.com but the error was same.
After that I execute
blat C:\temp.txt -to [email protected] -superdebug
After that this error I got.......
C:\blat310\full>blat C:\temp.txt -to [email protected] -superdebug
Blat v3.1.0 (build : Feb 2 2013 11:00:32)
32-bit Windows, Full, Unicode
Checking option -to
superDebug: init_winsock(), WSAStartup() returned 0 (NO_ERROR)
superDebug: Hostname <smtp.mail.apac.gm0.yahoodns.net> resolved to ip address 10
6.10.167.87
superDebug: Official hostname is smtp.mail.apac.gm0.yahoodns.net
superDebug: Attempting to connect to ip address 106.10.167.87
superDebug: ::connect() returned error 10060, retry count remaining is 1
superDebug: ::connect() returned error 10060, retry count remaining is 0
superDebug: Connection returned error 10060
Error: Can't connect to server (timed out if winsock.dll error 10060)
superDebug: ::say_hello() failed to connect, retry count remaining is 1
superDebug: init_winsock(), WSAStartup() returned 0 (NO_ERROR)
superDebug: Hostname <smtp.mail.apac.gm0.yahoodns.net> resolved to ip address 10
6.10.167.87
superDebug: Official hostname is smtp.mail.apac.gm0.yahoodns.net
superDebug: Attempting to connect to ip address 106.10.167.87
superDebug: ::connect() returned error 10060, retry count remaining is 1
superDebug: ::connect() returned error 10060, retry count remaining is 0
superDebug: Connection returned error 10060
Error: Can't connect to server (timed out if winsock.dll error 10060)
Error 10060 means that your connection times out, which is because there's nothing listening on port 995 on either smtp.mail.yahoo.com
or smtp.mail.apac.gm0.yahoodns.net
. Why do you try to connect to that port anyway? It's used for POP3 over SSL (i.e. mail retrieval), not for SMTP (mail submission).
Try either port 25 or (more likely) port 587. The latter is the default port for message submission (see RFC 4409 for details).