Skip to content

Releases: ainsleyclark/go-mail

Headers & http.Client

17 Feb 09:05
Compare
Choose a tag to compare
  • Added ability to pass custom headers via transmissions.
  • User can now pass in a custom http.Client to configuration.

Postmark Support & Removed Deps

30 Dec 12:18
Compare
Choose a tag to compare
  • New Postmark driver.
  • Removed all external dependencies from Mailgun, Sparkpost & Sendgrid.
  • Refactored codebase.
  • Moved drivers to seperate package.

Fixed Sparkpost From

21 May 07:54
Compare
Choose a tag to compare
v1.0.3

Fixed sparkpost from sending

SMTP

12 Apr 14:54
Compare
Choose a tag to compare

New SMTP Driver (non TLS).

func SMTP() {
	cfg := mail.Config{
		URL:         "smtp.gmail.com",
		FromAddress: "hello@gophers.com",
		FromName:    "Gopher",
		Password:    "my-password",
		Port:        587,
	}

	driver, err := mail.NewClient(mail.SMTP, cfg)
	if err != nil {
		fmt.Println(err)
		return
	}

	tx := &mail.Transmission{
		Recipients: []string{"hello@gophers.com"},
		Subject:    "My email",
		HTML:       "<h1>Hello from go mail!</h1>",
		PlainText:  "plain text",
	}

	result, err := driver.Send(tx)
	if err != nil {
		fmt.Println(err)
		return
	}

	fmt.Println(result)
}

Fixed MailGun

12 Apr 13:52
Compare
Choose a tag to compare

Fixed MailGun not rendering HTML

mailgun.go

message := m.client.NewMessage(m.cfg.FromAddress, t.Subject, t.PlainText, t.Recipients...)
message.SetHtml(t.HTML)

Initial Release

08 Apr 15:05
Compare
Choose a tag to compare

This is the first release of the application which supports the following frameworks:
SparkPost,
MailGun,
SendGrid
Users should reference the README.md for more information, it is kept up to date with releases.