Improve the e-mail notification

1) If the video file size is <20MB, then the video and its random
   selected preview image will be attached to the e-mail.
2) Add the `%v` argument to `on_event_end` hook in sample config.

Signed-off-by: kfei <kfei@kfei.net>