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.
In reply to SMTP Authentication by lv211
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |