I'm running Transmission 2.0.4 on a MyBook device. Except for one issue it's working great!
I'm trying to have it send me email notification upon completion of a torrent. I've set the following in my settings.json:
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/root/.config/transmission-daemon/torrent_done.sh",
When a torrent finishes I can see the following in /var/log/messages:
Oct 1 11:45:31 MyBookWorld daemon.info transmission-daemon[1319]: <Torrent name> Calling script "/root/.config/transmission-daemon/torrent_done.sh" (torrent.c:1695)
But I never receive the email. If I run the script manually it works fine. The script is marked executable and is chmod 777 just in case

Here is the script below:
#!/bin/bash
esmtp <my email address> <<EOF
Subject: "$TR_TORRENT_NAME" finished.
This is an automatic message from your friendly transmission-daemon
($TR_APP_VERSION), your files are in $TR_TORRENT_DIR .
Have a nice day!
EOF
Help?