Guest User

Untitled

a guest
Aug 5th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #!/usr/bin/perl
  2. #
  3. # for mydns.jp
  4.  
  5. use strict;
  6. use Net::POP3;
  7.  
  8. my $username="mydnsnnnn";
  9. my $password="xxxxxxxx";
  10.  
  11.  
  12. eval{
  13. my $pop = Net::POP3->new("mail.mydns.jp", Timeout=>60);
  14.  
  15. if($pop->login($username, $password)){
  16. $pop->quit;
  17. exit(0);
  18. }
  19. else{
  20. print STDERR "invalid\n";
  21. $pop->quit;
  22. exit(1);
  23. }
  24. };
Add Comment
Please, Sign In to add comment