Link to home
Start Free TrialLog in
Avatar of jbobst
jbobst

asked on

Visual SVN post commit hooks email problem

I have a Windows VisualSVN server and a few users have requested email notifications on post commits.  I found a support document with the following information but it doesn't work.  I am trying to figure out where I've gone wrong or what additional information I need.  I think there maybe some smtp settings I need to add or change, and I'll try and find those out from the email admin.  However, if anyone could help me with my syntax, that would be great.  Here is what I added to the post commit hooks:

"C:\Program Files (x86)\VisualSVN Server\bin\VisualSVNServerHooks.exe" ^
    commit-notification "%1" -r %2 ^
    --from <myemail@mydomain.com --to useremail@mydomain.com ^
    --smtp-server mail.mydomain.com
    --smtp-user MyWindowsLoginName
    --smtp-password MyWindowsPassword

I don't know if I need those ^ symbols or not, or if I should have the spaces before the --smtp... commands.  I am just trying to follow the article here:

http://www.visualsvn.com/support/topic/00018/

Here is the errors people receive when they commit changes to the database:

Error     post-commit hoot failed (exit code 1) with output:
Error     VisualSVNServerHooks.exe: invalid option: --frommyemail@mydomain.com
Error     Type 'VisualSVNServerHooks help' for usage.
Error     '--smtp-server' is not recognized as an internal or external command,
Error     operable program or batch file.
Error     '--smtp-user' is not recognized as an internal or external command,
Error     operable program or batch file.
Error     '--smtp-password' is not recognized as an internal or external command,
Error     operable program or batch file.

I might also have to add smtp port arguments and smtp ssl arguments, but it appears that the other smtp arguments aren't even acceptable.
ASKER CERTIFIED SOLUTION
Avatar of jbobst
jbobst

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial