Sending (form-)mails from static websites with Go

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • js-mailer

    A form mailer web service for JavaScript-based websites

  • js-mailer is a very simple, yet powerful, web service writting in Go that allows static websites to send forms via JavaScript’s fetch() or XMLHttpRequest APIs.

  • Gomail

    The best way to send emails in Go.

  • In the first iterations of js-mailer I used the popular go-gomail/gomail package for handling the mail sending part. Unfortunately the project isn't maintained anymore and uses some pretty outdated opinions on how to handle the mail sending.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • go-mail

    📧 Easy to use, yet comprehensive library for sending mails with Go

  • Due to the above mentioned reasons and the lack of proper alternatives decided to write my own Go mail library. On a long weekend I started working on wneessen/go-mail and in the night of Sunday I had a kind of working prototype and I implemented it with js-mailer.

  • Hugo

    The world’s fastest framework for building websites.

  • Even though this worked pretty well, over the years I started to dislike Wordpress. Also with all the needed plugins, the site became horribly slow (4-5 seconds per requests - I’ve never really figured out which plugin caused this slowness). So eventually I decided to replace the Wordpress with a static page generator: Hugo.

  • formspree

    Discontinued The successor to this repository is actively maintained at https://formspree.io. Its source code is not available

  • So I had to use JavaScript and some kind of form mailer to send contact form requests. There are 3rd party services like https://formspree.io/ that are specialized on this, but since I don’t wanna invest money just to send forms and I also don’t trust the data privacy of such services (GDPR is a big thing in the EU you know 😉), I decided to write my own little web service for it.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts