All Projects → go-mail → mail

go-mail / mail

Licence: MIT license
Actively maintained fork of gomail. The best way to send emails in Go.

Projects that are alternatives of or similar to mail

Mailer
A lightweight PHP SMTP mail sender
Stars: ✭ 53 (-85.9%)
Mutual labels:  email, mailer, smtp
email
Aplus Framework Email Library
Stars: ✭ 127 (-66.22%)
Mutual labels:  email, mailer, smtp
Magento 2 Smtp
Magento 2 SMTP Extension helps the owner of store simply install SMTP (Simple Mail Transfer Protocol) server which transmits the messages into codes or numbers.
Stars: ✭ 228 (-39.36%)
Mutual labels:  email, mailer, smtp
Lettre
a mailer library for Rust
Stars: ✭ 713 (+89.63%)
Mutual labels:  email, mailer, smtp
Yagmail
Send email in Python conveniently for gmail using yagmail
Stars: ✭ 2,169 (+476.86%)
Mutual labels:  email, smtp
emailpyspam
A python 3+ program to spam emails to a list of users repetitively
Stars: ✭ 63 (-83.24%)
Mutual labels:  email, smtp
Hermes
Golang package that generates clean, responsive HTML e-mails for sending transactional mail
Stars: ✭ 2,379 (+532.71%)
Mutual labels:  email, smtp
Drymail
Makes sending emails easy and DRY — For Python 3.
Stars: ✭ 218 (-42.02%)
Mutual labels:  email, smtp
Free Email Forwarding
The best free email forwarding for custom domains. Visit our website to get started (SMTP server)
Stars: ✭ 2,024 (+438.3%)
Mutual labels:  email, smtp
Aiosmtpd
A reimplementation of the Python stdlib smtpd.py based on asyncio.
Stars: ✭ 195 (-48.14%)
Mutual labels:  email, smtp
Vmime
VMime Mail Library
Stars: ✭ 218 (-42.02%)
Mutual labels:  email, smtp
Mailu
Insular email distribution - mail server as Docker images
Stars: ✭ 3,151 (+738.03%)
Mutual labels:  email, smtp
Mnm
The legitimate email replacement — n-identity, decentralized, store-and-forward, open protocol, open source. (Server)
Stars: ✭ 162 (-56.91%)
Mutual labels:  email, smtp
Swift Smtp
Swift SMTP client
Stars: ✭ 162 (-56.91%)
Mutual labels:  email, smtp
Ptorx
📩🛡 Email privacy. Anonymously send and receive with alias forwarding.
Stars: ✭ 187 (-50.27%)
Mutual labels:  email, smtp
Email Verifier
✅ A Go library for email verification without sending any emails.
Stars: ✭ 162 (-56.91%)
Mutual labels:  email, smtp
Hectane
Lightweight SMTP client written in Go
Stars: ✭ 200 (-46.81%)
Mutual labels:  email, smtp
Log-mailer
Log mailer is a program I made to email log files.
Stars: ✭ 46 (-87.77%)
Mutual labels:  mailer, smtp
Papercut Smtp
Papercut SMTP -- The Simple Desktop Email Server
Stars: ✭ 2,094 (+456.91%)
Mutual labels:  email, smtp
Nanolist
mailing lists - the unix way
Stars: ✭ 153 (-59.31%)
Mutual labels:  email, smtp

Gomail

Build Status Code Coverage Documentation

This is an actively maintained fork of Gomail and includes fixes and improvements for a number of outstanding issues. The current progress is as follows:

  • Timeouts and retries can be specified outside of the 10 second default.
  • Proxying is supported through specifying a custom NetDialTimeout.
  • Filenames are properly encoded for non-ASCII characters.
  • Email addresses are properly encoded for non-ASCII characters.
  • Embedded files and attachments are tested for their existence.
  • An io.Reader can be supplied when embedding and attaching files.

See Transitioning Existing Codebases for more information on switching.

Introduction

Gomail is a simple and efficient package to send emails. It is well tested and documented.

Gomail can only send emails using an SMTP server. But the API is flexible and it is easy to implement other methods for sending emails using a local Postfix, an API, etc.

It requires Go 1.2 or newer. With Go 1.5, no external dependencies are used.

Features

Gomail supports:

  • Attachments
  • Embedded images
  • HTML and text templates
  • Automatic encoding of special characters
  • SSL and TLS
  • Sending multiple emails with the same SMTP connection

Documentation

https://godoc.org/github.com/go-mail/mail

Download

If you're already using a dependency manager, like dep, use the following import path:

github.com/go-mail/mail

If you aren't using vendoring, go get the Gopkg.in import path:

gopkg.in/mail.v2

Examples

See the examples in the documentation.

FAQ

x509: certificate signed by unknown authority

If you get this error it means the certificate used by the SMTP server is not considered valid by the client running Gomail. As a quick workaround you can bypass the verification of the server's certificate chain and host name by using SetTLSConfig:

package main

import (
	"crypto/tls"

	"gopkg.in/mail.v2"
)

func main() {
	d := mail.NewDialer("smtp.example.com", 587, "user", "123456")
	d.TLSConfig = &tls.Config{InsecureSkipVerify: true}

	// Send emails using d.
}

Note, however, that this is insecure and should not be used in production.

Transitioning Existing Codebases

If you're already using the original Gomail, switching is as easy as updating the import line to:

import gomail "gopkg.in/mail.v2"

Contribute

Contributions are more than welcome! See CONTRIBUTING.md for more info.

Change log

See CHANGELOG.md.

License

MIT

Support & Contact

You can ask questions on the Gomail thread in the Go mailing-list.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].