Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
578
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #!/bin/bash
  2. from="user1@gmail.com"
  3. to="user2@gmail.com"
  4. subject="Howdy!"
  5. message="Aaaaaah! I can send an email with bash!"
  6.  
  7. mail -s "$subject" -r "$from" "$to" <<< "$message"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement