Code Sample to Send Emails in Go with the net/SMTP Package

This page summarizes the projects mentioned and recommended in the original post on /r/golang

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

    The best way to send emails in Go. (by Shopify)

  • As a side note: original gomail repo is abandoned for years now. A somewhat active fork is the one maintained by Shopify https://github.com/Shopify/gomail

  • go-mail

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

  • The gomail package you are referring to has not seen an update for 6 years and seems to be unmaintained. I suggest to use go-mail instead, which is actively maintained and implements some additional features that are not found in the unmaintained one.

  • 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
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