Example of automated video email?

Jump to: navigation, search
Revision as of 23 March 2017 at 16:35.
The highlighted comment was edited in this revision. [diff]

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

2. add:

  1. !/bin/bash

list=( $1*.th.jpg ) thumb="${list[-1]}" mpack -s subject /var/www/media/thumb mail.address@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

    09:34, 23 March 2017