In /path/to/repo/hooks
cp post-commit.tmpl post-commit chmod +x post-commit
Modify post-commit to contain
/path/to/scripts/commit-email.pl "$REPOS" "$REV" me@example.com
Test it with the path to your repository and a revision number:
./post-commit /path/to/repo 5
Examine any errors and fix them.
I had to change the command in post-commit to include a 'from' address, like so:
/path/to/scripts/commit-email.pl "$REPOS" "$REV" --from me@example.com me@example.com
Then I decided I wanted the subject line prefixed with 'svn commit:', so this is the final version:
/path/to/scripts/commit-email.pl "$REPOS" "$REV" --from me@example.com -s "svn commit:" me@example.com