Email notification

17 views
Skip to first unread message

Joco1114

unread,
Jan 3, 2011, 7:14:28 AM1/3/11
to transmission-remote-dotnet
Me again! Is there any way to send an email notification by the remote?

Joco1114

unread,
Jan 25, 2011, 1:09:53 AM1/25/11
to transmission-remote-dotnet
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
Reply all
Reply to author
Forward
0 new messages