I have VisualSVN Server running on my server and I have created a post-commit hook to send an email to me when someone commits code, using the steps outlined here: http://www.visualsvn.com/support/topic/00018/
However, I would like to be able to have an email sent to one person if a certain project in SVN has been committed to, but someone else should receive an email if another project is committed to.
How can I go about creating multiple post-commit hooks to send emails to different people depending on on which project is committed to?
I figured it out. I simply entered the next hook underneath my initial one, separating them with line. Eg:
"%VISUALSVN_SERVER%\bin\VisualSVNServerHooks.exe" ^
commit-notification "%1" -r %2 ^
--from [email protected] --to [email protected] ^
--smtp-server mail.mycompany.co.za ^
--detailed-subject
"%VISUALSVN_SERVER%\bin\VisualSVNServerHooks.exe" ^
commit-notification "%1" -r %2 ^
--from [email protected] --to [email protected] ^
--smtp-server mail.mycompany.co.za ^
--detailed-subject