Skip to content

mail package deprecated

Created by: slimsag

We have an immediate need to fix these issues with the way Sourcegraph sends email:

But the upstream mail sending package we use https://github.com/jpoehls/gophermail has been archived and unmaintained for 4 years. Also, none of the mail sending code in Sourcegraph is tested so swapping it out is going to be risky.

https://github.com/go-gomail/gomail looks like a promising package to move to. Once implemented, we should manually test all email user flows work:

  • saved search "subscribe" emails
  • saved search notification emails
  • saved search "unsubscribe" emails
  • organization invite emails
  • reset password emails
  • emails on sourcegraph.com which use mandrill which I think we have some special code to disable click tracking
  • Every other place we call txemail.send that might not work due to a difference in underlying mail package behavior