Site icon Golang Libraries, Apps, Golang Jobs and Go Tutorials

A comprehensive library for sending mails with Golang

Golang Send Emails

The main idea of this library was to provide a simple interface to send emails for authors’ JS-Mailer projects. It quickly evolved into a full-fledged mail library.

go-mail follows the idiomatic Golang style and best practice. Its only dependency is the Go Standard Library. It combines many functionalities from the standard library to give easy and convenient access to mail and SMTP-related tasks.

Parts of this library (especially some parts of msgwriter.go) have been forked/ported from the go-mail/mail respectively go-gomail/gomail which both seem not to be maintained anymore.

Golang SMTP Email Library Features

Some of the features of this golang library:

go-mail works like a programmatic email client and provides lots of methods and functionalities you would consider standard in an MUA.

Golang Email Library Examples

The package is shipped with GoDoc example code for different scenarios. Check them out on its GoDoc page

For ease of use, here is a full usage example:

Exit mobile version