Sync libnet modules with what will be libnet-1.08
[p5sagit/p5-mst-13.2.git] / lib / Net / t / smtp.t
CommitLineData
406c51ee 1#!./perl -w
2
3use Net::Config;
4use Net::SMTP;
5
6unless(@{$NetConfig{smtp_hosts}} && $NetConfig{test_hosts}) {
7 print "1..0\n";
8 exit 0;
9}
10
11print "1..3\n";
12
13my $i = 1;
14
15$smtp = Net::SMTP->new(Debug => 0)
16 or (print("not ok 1\n"), exit);
17
18print "ok 1\n";
19
20$smtp->domain or print "not ";
21print "ok 2\n";
22
23$smtp->quit or print "not ";
24print "ok 3\n";
25