Solved

Visual SVN post commit hooks email problem

Posted on 2013-12-05
1
1,232 Views
Last Modified: 2013-12-18
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.
0
Comment
Question by:jbobst
1 Comment
 
LVL 1

Accepted Solution

by:
jbobst earned 0 total points
ID: 39728132
Got it working...some syntax was incorrect.  I re-entered it and now it works.  Not sure what was typed wrong though.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
visualstudio.com / TFS Setting up projects 5 1,112
git, understanding 2 156
development environment version control 3 133
Not able to update Java 5 213
INTRODUCTION Subversion is a fantastic version management and software configuration management tool for teams and individuals to manage software applications. It offers many advantages over it's CVS ancestor such as it's built-in compatibility w…
Article by: gr8gonzo
Git can be a complicated version control system for beginners, but it definitely is one of the best ones out there. Since this article assumes that you're starting at square one, it will skip over things that Git -can- do and will focus on the typic…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

774 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question