Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- from="user1@gmail.com"
- to="user2@gmail.com"
- subject="Howdy!"
- message="Aaaaaah! I can send an email with bash!"
- mail -s "$subject" -r "$from" "$to" <<< "$message"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement