From: Greg Brondo Date: 2004-03-19T07:14:46+09:00 Subject: Re: Socket error gabriele renzi wrote: > il Wed, 17 Mar 2004 20:59:17 GMT, Greg Brondo ha > scritto:: > >>I try to run this code: >> >> pop = Net::POP3.start("mta.algx.net","myname","mypass") { |pop| } >> >>And I get this error: >> >>SocketError: getaddrinfo: servname not supported for ai_socktype. >> >>Any ideas? I'm running 1.8.1 on Windows XP (via RubyInstaller) > > it seem you'0re missing thye port parameter. > > I believe that it is: > POP3.start( address, port = nil, account = nil, password = nil, isapop > = false ) {|pop| ...} > > so: > pop= Net::POP3.start("mta.algx.net",110,"myname","mypass") > > could work Ok....I fell goofy...I should read the docs a *little* better...Thanks! Greg B.