In my previous post I described how to enable conditional post commit notifications in Subversion. In this post I’m going to show how to extend mailer.py from subversion tools in order to use gmail smtp server (smtp.gmail.com:587) for sending emails.
You should note one thing if you want to use gmail smtp server for emailing in your applications – it requires SSL enabled. So first you need to create gmail account – its credentials will be used to connect to smtp.gmail.com. Once gmail account created you need to add new setting “smtp_use_ssl” in mailer.conf file:
After that you will be able to use gmail smtp server to send post commit notifications via mailer.py.