Example of automated video email?
All, I have the RPi Cam Web up and working and now moving onto tidying up the install. I installed, configured and verified that ssmtp and mpack are able to send emails/attachments from pi@raspberrypi prompt.
I need a second set of eyes or someone to verify this is the proper approach:
1. nano /var/www/macros/end_vid.sh
list=( $1*.th.jpg )
mpack -s subject /var/www/media/thumb email@example.com
[save and exit nano]
3. sudo chmod a+x /var/www/macros/end_vid.sh
4. sudo chown www-data:www-data /var/www/macros/end_vid.sh
Does this look correct? is there a more elegant way or method that I overlooked?
Guidance and help are appreciated! Brian