Commit | Line | Data |
---|---|---|
406c51ee JH |
1 | #!./perl -w |
2 | ||
302cc833 GB |
3 | BEGIN { |
4 | unless (-d 'blib') { | |
5 | chdir 't' if -d 't'; | |
6 | @INC = '../lib'; | |
7 | } | |
8 | } | |
9 | ||
406c51ee JH |
10 | use Net::Config; |
11 | use Net::SMTP; | |
12 | ||
13 | unless(@{$NetConfig{smtp_hosts}} && $NetConfig{test_hosts}) { | |
14 | print "1..0\n"; | |
15 | exit 0; | |
16 | } | |
17 | ||
18 | print "1..3\n"; | |
19 | ||
20 | my $i = 1; | |
21 | ||
22 | $smtp = Net::SMTP->new(Debug => 0) | |
23 | or (print("not ok 1\n"), exit); | |
24 | ||
25 | print "ok 1\n"; | |
26 | ||
27 | $smtp->domain or print "not "; | |
28 | print "ok 2\n"; | |
29 | ||
30 | $smtp->quit or print "not "; | |
31 | print "ok 3\n"; | |
32 |