Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- date > /tmp/gpgtxt.txt
- gpg -ea -r receiver@mail.com /tmp/gpgtxt.txt
- cat /tmp/gpgtxt.txt.asc | mailx -s "cli encryption"
- -a /tmp/gpgtxt.txt.asc
- -S smtp-use-starttls
- -S ssl-verify=ignore
- -S smtp-auth=login
- -S smtp=smtp://smtp.gmail.com:587
- -S from="sender@send.com"
- -S smtp-auth-user=sender@send.com
- -S smtp-auth-password="senderpassword"
- receiver@mail.com
Add Comment
Please, Sign In to add comment