Fork me on GitHub


Enable Etherpad to send email via GMail

March 15, 2010 | Computers

By default Etherpad wants a local mail server to send email. We didn’t want to muck around with the security details of hosting a mail server so we decided to use our catch all GMail account to send email. The only problem was that Etherpad wasn’t set up to do TLS authentication when sending email.

It was a relatively easy fix once I could a) figure out the problem and b) actually find the mail functionality within the Etherpad source.

Simply make the change below and recompile your .jar. Update your SMTP settings to point and authenticate to GMail and you’re off to the races.

  1.  --- a/trunk/infrastructure/net.appjet.ajstdlib/ajstdlib.scala Fri Dec 25 22:53:09 2009 -0500
  2.  +++ b/trunk/infrastructure/net.appjet.ajstdlib/ajstdlib.scala Thu Mar 11 14:38:29 2010 -0700
  3.  @@ -217,6 +217,7 @@
  4.   val debug = false;
  5.   val props = new Properties;
  6.  + props.put("mail.smtp.starttls.enable","true");
  7.   props.put("", config.smtpServerHost);
  8.   props.put("mail.smtp.port", config.smtpServerPort.toString());
  9.   if (config.smtpUser != "")

Now, if anyone points out where this was previously documented I’ll politely ask you to keep that to yourself ’cause I spent a fair amount of time tracking this bad boy down! 😉

Update: In case anyone is wondering, yes, I did submit this back to the Etherpad Google Group as well.

One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.


  1. Around the web |

    […] Enable Etherpad to send email via GMail – We are using EtherPad for collaborative note taking in meetings, etc. […]

    March 16, 2010 | 8:08 am

Comments are closed