Help for this page

Select Code to Download


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