Embedded Script Not Working

- Code: Select all
shell is /bin/bash
textFileName=basename "$1"
/usr/local/bin/mtcmail -t me@me.com -b me@me.com -s "$textFileName - la de dah"
Not working. Sends the email, but does not include the file name. I've attempted various versions of this, and none of them work.