in reply to SMTP Authentication

Fails for me as described using AS Perl 5.8.7 on Windows XP with Net::SMTP 2.29.


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: SMTP Authentication
by imp (Priest) on Aug 25, 2006 at 00:18 UTC
    Are you able to connect to smtp.1and1.com on port 25 from that location? Try this in the cmd shell:
    telnet smtp.1and1.com 25
    I just tested the code from a Win2000 machine with AS perl 5.6.1 and Net::SMTP 2.26 with no issues. I did get that error on a local WinXP machine that cannot make outbound connections to port 25 though.

      Nope. Connect failed. Firewall I guess, but turning off my Windows firewall makes no difference.


      DWIM is Perl's answer to Gödel
Re^2: SMTP Authentication
by jdtoronto (Prior) on Aug 25, 2006 at 07:16 UTC
    Many ISP's block outgoing connections on port 25 in order to reduce the amount of spam being sent from accounts in their networks and to block viruses that try to use port 25 to send emails direct to their targets.

    Try port 587 or port 857 on the SMTP server. I believe that many SMTP servers can be configured to listen on multiple ports so that you can get around a port 25 block.

    jdtoronto