diff --git a/README.md b/README.md index b3be9e1..5366590 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,15 @@ # Gomail -[![Build Status](https://travis-ci.org/go-gomail/gomail.svg?branch=v2)](https://travis-ci.org/go-gomail/gomail) [![Code Coverage](http://gocover.io/_badge/gopkg.in/gomail.v2)](http://gocover.io/gopkg.in/gomail.v2) [![Documentation](https://godoc.org/gopkg.in/gomail.v2?status.svg)](https://godoc.org/gopkg.in/gomail.v2) ## Introduction Gomail is a simple and efficient package to send emails. It is well tested and -documented. +documented. This fork is based on Gomail v2 and adds context support, modules, +and similar newer features. 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 is versioned using [gopkg.in](https://gopkg.in) so I promise -there will never be backward incompatible changes within each version. - -It requires Go 1.2 or newer. With Go 1.5, no external dependencies are used. - ## Features @@ -29,17 +24,17 @@ Gomail supports: ## Documentation -https://godoc.org/gopkg.in/gomail.v2 +https://godoc.org/github.com/DeedleFake/gomail ## Download - go get gopkg.in/gomail.v2 + go get github.com/DeedleFake/gomail ## Examples -See the [examples in the documentation](https://godoc.org/gopkg.in/gomail.v2#example-package). +See the [examples in the documentation](https://godoc.org/github.com/DeedleFake/gomail#example-package). ## FAQ @@ -56,7 +51,7 @@ bypass the verification of the server's certificate chain and host name by using import ( "crypto/tls" - "gopkg.in/gomail.v2" + "github.com/DeedleFake/gomail" ) func main() { diff --git a/example_test.go b/example_test.go index 90008ab..dabfd17 100644 --- a/example_test.go +++ b/example_test.go @@ -7,7 +7,7 @@ import ( "log" "time" - "gopkg.in/gomail.v2" + "github.com/DeedleFake/gomail" ) func Example() { diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..259e922 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/DeedleFake/gomail + +go 1.17 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..e69de29 diff --git a/mime.go b/mime.go index 194d4a7..26c44de 100644 --- a/mime.go +++ b/mime.go @@ -1,3 +1,4 @@ +//go:build go1.5 // +build go1.5 package gomail diff --git a/mime_go14.go b/mime_go14.go deleted file mode 100644 index 3dc26aa..0000000 --- a/mime_go14.go +++ /dev/null @@ -1,25 +0,0 @@ -// +build !go1.5 - -package gomail - -import "gopkg.in/alexcesaro/quotedprintable.v3" - -var newQPWriter = quotedprintable.NewWriter - -type mimeEncoder struct { - quotedprintable.WordEncoder -} - -var ( - bEncoding = mimeEncoder{quotedprintable.BEncoding} - qEncoding = mimeEncoder{quotedprintable.QEncoding} - lastIndexByte = func(s string, c byte) int { - for i := len(s) - 1; i >= 0; i-- { - - if s[i] == c { - return i - } - } - return -1 - } -)