Using Gmail as an SMTP host for Sakai

This bit of code has been around for a while, but I’m not sure it’s written up anywhere except in Jira, so here goes, how to setup Sakai to use GMail for sending email:<username><password> (optional)

And for development, you can’t beat this setting for testing email without it actually being sent: