Guest User

Untitled

a guest
Jan 22nd, 2018
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #!/usr/local/bin/perl -w
  2.  
  3. use Net::SMTP;
  4.  
  5. $subject = "tempeh address";
  6. #$date = `date`;
  7. if ( defined(@ARGV) ) {
  8. $subject = "Commit message Revision @ARGV";
  9. }
  10.  
  11. $smtp = Net::SMTP->new('smtp.o2.co.uk');
  12. $smtp->mail('yut45390@github.com');
  13. $smtp->to('yut45390@github.com');
  14. $smtp->data();
  15. $smtp->datasend("To: yut45390\@github.com\n");
  16. $smtp->datasend("Subject: $subject\n");
  17. $smtp->datasend("\n");
  18.  
  19. while (<stdin>) {
  20. $smtp->datasend($_);
  21. }
  22. $smtp->dataend();
  23. $smtp->quit;
Add Comment
Please, Sign In to add comment