- or download this
$smtp->recipients(@addresses, { Notify => ['SUCCESS','FAILURE','DELAY'
+] });
- or download this
#!/usr/bin/perl
...
our $res = Net::DNS::Resolver->new();
our @mx = mx($res, $domainpart)
or die "Cannot resolve $domainpart: $!\n";
- or download this
for my $rr (@mx)
{
print $rr->preference, " ", $rr->exchange,"\n";
}
- or download this
# We assume that @mx contains something, since the die()
# during MX resolution would have killed us by now
...
sleep(2);
}
}