slightly injured, so terse. this is output with failed assumptions
host is www.1and1.com $ENV{USER} does not exists or is not defined. ... Net::SMTP fatal error: Unable to connect to 'www.1and1.com'. A connect +ion attemp t failed because the connected party did not properly respond after a +period of time, or established connection failed because connected host has fail +ed to resp ond. at (eval 35) line 3. eval ' use Net::SMTP; my $smtp = Net::SMTP->new(Host => $host, Debug => 2) or croak "Unable to connect to \'$host\'. $!"; $smtp->mail($ENV{USER}); $smtp->to($phone); $smtp->data(); $smtp->datasend("From: $ENV{USER}\\n"); $smtp->datasend("Subject: This is your map link\\n"); $smtp->datasend("\\n"); $smtp->datasend($link); $smtp->dataend(); $smtp->quit(); ;' called at alpaca4.pl line 27 main::email_link('3um671.html') called at alpaca4.pl line 12 at alpaca4.pl line 42. main::email_link('3um671.html') called at alpaca4.pl line 12 ## and then this one is the right smtp address host is smtp.1and1.com Net::SMTP fatal error: Unable to connect to 'smtp.1and1.com'. A connec +tion attem pt failed because the connected party did not properly respond after a + period of time, or established connection failed because connected host has fai +led to res pond. at (eval 35) line 3. eval ' use Net::SMTP; my $smtp = Net::SMTP->new(Host => $host, Debug => 2) or croak "Unable to connect to \'$host\'. $!"; $smtp->mail("myself"); $smtp->to($phone); $smtp->data(); $smtp->datasend("From: me\\n"); $smtp->datasend("Subject: This is your map link\\n"); $smtp->datasend("\\n"); $smtp->datasend($link); $smtp->dataend(); $smtp->quit(); ;' called at alpaca4.pl line 27 main::email_link('dn75w1.html') called at alpaca4.pl line 12 at alpaca4.pl line 42. main::email_link('dn75w1.html') called at alpaca4.pl line 12
Called 1and1. Port should be 587. Encryption should be TLS. I couldn't understand the alphanumeric for 'Larry' as pronounced by someone from India, but we worked it out because I could keep on asking questions.
In reply to Re^2: instantiating an smtp object
by Aldebaran
in thread instantiating an smtp object
by Aldebaran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |