This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Initial integration of libnet-1.0703.
[perl5.git] / lib / Net / t / smtp.t
CommitLineData
406c51ee
JH
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