I recently created a patch for the Mercurial Project and in order to submit the patch I had to use hg’s patchbomb extension. Unfortuantely that requires me to have SMTP on my system. I didn’t have that so either I needed to install SMTP or figure out a way to use Gmail. I decided to use Gmail but it took me a while to get it working because I couldn’t really find much help on the web. Since nobody seems to have explained how to do this properly I decided I’ll just put out a simple guide. Here it is:
- Open up your repo’s .hgrc file
- Add the following:
[extensions]
hgext.patchbomb =
[email]
from=[your_name] [<your_email>]
method=smtp
[smtp]
host=smtp.gmail.com
port=587
username=[gmail_email_address]
password=[gmail_password]
tls=True