I speak here with myself. :)
Here is the solution:
In the settings.json I have to insert (set) these lines:
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/opt/etc/transmission/
endscript.sh",
Of course you have to modify the path of your script. The contain of
this "endscript":
#!/bin/ash
{
# set vars
EMAIL=
your_emai...@host.com
SUBJECT="My NAS: Download complete: '$TR_TORRENT_NAME'"
TRANSMISSION_HOME=/opt/etc/transmission
# email notification
echo "New content has been downloaded: $TR_TORRENT_NAME
Completed at: $TR_TIME_LOCALTIME
" | /opt/bin/nail -s "$SUBJECT" "$EMAIL"
} &
This script uses nail to send mail, that means you have to install it
before. (For example: ipkg install nail) Dont forget to set SMTP in
the nail.rc. I use gmail to send mail, here is my settings:
set smtp=
smtp.gmail.com:587
set smtp-use-starttls
set smtp-auth-user=
your...@gmail.com
set ssl-verify=ignore
set smtp-auth-password=*******
Important: set ssl-verify to ignore!
Thats all! :)
Guys, what about to improve the remote with auto email sending?
Joc