lv211 has asked for the wisdom of the Perl Monks concerning the following question:
Right now I'm just trying to access the server.
My code is:
I keep getting the error: Can't open connection to smtp.1and1.com unknown error#!/usr/bin/perl -w use strict; use Net::SMTP; my $mail_server = "smtp.1and1.com"; my $username = "login"; my $password = "password"; my $pop = Net::SMTP->new($mail_server) or die "Can't open connection to $mail_server: $!\n"; defined ($pop->auth($username, $password)) or die "Can't authenticate: $!\n";
So I think the problem has to do with the initial connection to the server.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SMTP Authentication
by imp (Priest) on Aug 24, 2006 at 23:57 UTC | |
|
Re: SMTP Authentication
by GrandFather (Saint) on Aug 25, 2006 at 00:08 UTC | |
by imp (Priest) on Aug 25, 2006 at 00:18 UTC | |
by GrandFather (Saint) on Aug 25, 2006 at 00:25 UTC | |
by jdtoronto (Prior) on Aug 25, 2006 at 07:16 UTC | |
|
Re: SMTP Authentication
by lv211 (Beadle) on Aug 25, 2006 at 00:19 UTC | |
by imp (Priest) on Aug 25, 2006 at 00:24 UTC | |
|
Re: SMTP Authentication
by lv211 (Beadle) on Aug 25, 2006 at 00:27 UTC |