Guest User

Untitled

a guest
Aug 11th, 2018
959
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!/bin/bash
  2. date > /tmp/gpgtxt.txt
  3.  
  4.  
  5. gpg -ea -r receiver@mail.com /tmp/gpgtxt.txt
  6.  
  7. cat /tmp/gpgtxt.txt.asc | mailx -s "cli encryption"
  8. -a /tmp/gpgtxt.txt.asc
  9. -S smtp-use-starttls
  10. -S ssl-verify=ignore
  11. -S smtp-auth=login
  12. -S smtp=smtp://smtp.gmail.com:587
  13. -S from="sender@send.com"
  14. -S smtp-auth-user=sender@send.com
  15. -S smtp-auth-password="senderpassword"
  16. receiver@mail.com
Add Comment
Please, Sign In to add comment