TringaliLuca

Automatically send webcam photo using email server

Apr 21st, 2017
163
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. streamer -s 1280x720 -f jpeg -o /tmp/tmpfoto.jpeg
  3. echo "Last photo from the webcam is attached" | mail -s "your last photo" user@gmail.com -A /tmp/tmpfoto.jpeg
RAW Paste Data