mailgun-go

Go library for sending mail with the Mailgun API.

BSD-3-CLAUSE License

Stars
695
Committers
75

Bot releases are visible (Hide)

mailgun-go - Release Release 3.6.1-rc.3

Published by thrawn01 over 5 years ago

Added

  • APIBaseEU and APIBaseUS to help customers change regions
  • Documented how to change regions in the README
  • Now URLs passed to SetAPIBase() are required to end in /v2,v3 or v4
mailgun-go - Release 3.6.1-rc.2

Published by thrawn01 over 5 years ago

[3.6.1-rc.1] - 2019-06-26

Changes

  • Fix the JSON response for GetMember()
  • Typo in format string in max number of tags error
mailgun-go - Release 3.6.1-rc.1

Published by thrawn01 over 5 years ago

[3.6.1-rc.1] - 2019-06-26

Changes

  • Fix the JSON response for GetMember()
mailgun-go - Release v3.6.0

Published by thrawn01 over 5 years ago

[3.6.0] - 2019-06-26

Added

  • Added UpdateClickTracking() to modify click tracking for a domain
  • Added UpdateUnsubscribeTracking() to modify unsubscribe tracking for a domain
  • Added UpdateOpenTracking() to modify open tracking for a domain
mailgun-go - Release 3.6.0-rc.1

Published by thrawn01 over 5 years ago

[3.6.0-rc.1] - 2019-06-07

Added

  • Added UpdateClickTracking() to modify click tracking for a domain
  • Added UpdateUnsubscribeTracking() to modify unsubscribe tracking for a domain
  • Added UpdateOpenTracking() to modify open tracking for a domain

This fixes #192

mailgun-go - Release v3.5.0

Published by thrawn01 over 5 years ago

[3.5.0] - 2019-05-21

Added

  • Added notice in README about go dep bug.
  • Added endpoints for webhooks in mock server

Changes

  • Changed UserVariables to map[string]interface{} to support deeply nested JSON structures
  • Change names of some parameters on public methods to make their use clearer.
  • Changed signature of GetWebhook() now returns []string.
  • Changed signature of ListWebhooks() now returns map[string][]string.
  • Both GetWebhooks() and ListWebhooks() now handle new and legacy webhooks properly.
mailgun-go - Release v3.4.0

Published by thrawn01 over 5 years ago

[3.4.0] - 2019-04-23

Added

  • Added Message.SetTemplate() to allow sending with the body of a template.

Changes

  • Changed signature of CreateDomain() moved password into CreateDomainOptions
mailgun-go - Release v3.3.4

Published by thrawn01 over 5 years ago

  • Event iterator now returns false if it encounters a event parse error. #182
mailgun-go - Release 3.3.3

Published by thrawn01 over 5 years ago

Fixed marshalling for event changes

mailgun-go - Release 3.3.2

Published by thrawn01 over 5 years ago

  • Uncommented DeliveryStatus.Code and change it to an integer (See #175)
  • Added UserVariables to all Message events (See #176)
mailgun-go - Release 3.3.1

Published by thrawn01 over 5 years ago

[3.3.1] - 2019-03-13

Changes

  • Updated Template calls to reflect the most recent Template API changes.
  • GetStoredMessage() now accepts a URL instead of an id
  • Deprecated GetStoredMessageForURL()
  • Deprecated GetStoredMessageRawForURL()
  • Fixed GetUnsubscribed()

Added

  • Added GetStoredAttachment()

Removed

  • Method DeleteStoredMessage() mailgun API no long allows this call
mailgun-go - Release v3.3.0

Published by thrawn01 over 5 years ago

Changes

  • Changed signature of CreateDomain() Now returns JSON response
  • Changed signature of GetDomain() Now returns a single DomainResponse
  • Clarified installation notes for non golang module users
  • Changed 'Public Key' to 'Public Validation Key' in readme
  • Fixed issue with Next() for limit/skip based iterators

Added

  • Added VerifyDomain()
mailgun-go - Release Candidate 3.3.0-rc.1

Published by thrawn01 over 5 years ago

  • Changed signature of CreateDomain() Now returns JSON response
  • Changed signature of GetDomain() Now returns a single DomainResponse
  • Clarified installation notes for non golang module users
  • Changed 'Public Key' to 'Public Validation Key' in readme
mailgun-go - Release v3.2.0

Published by thrawn01 over 5 years ago

Added support for Mailgun Webhooks 2.0

  • Deprecated mg.VerifyWebhookRequest()
  • Added mailgun.ParseEvent()
  • Added mailgun.ParseEvents()
  • Added mg.VerifyWebhookSignature()
mailgun-go - Release 3.1.0

Published by thrawn01 almost 6 years ago

Changes

  • Removed context.Context from ListDomains() signature
  • ListEventOptions.Begin and End are no longer pointers to time.Time

Added

  • Added mg.ReSend() to public Mailgun interface
  • Added Message.SetSkipVerification()
  • Added Message.SetRequireTLS()
mailgun-go - Release v3.0.1

Published by thrawn01 almost 6 years ago

Templates API now marshals RFC2822 dates to time.Time instead of string

mailgun-go - Release v3.0.0

Published by thrawn01 almost 6 years ago

NOTE: This release introduces go module support and requires the latests golang version to support versioned import paths.

List of added methods

  • Added AddDomainIP()
  • Added ListDomainIPS()
  • Added DeleteDomainIP()
  • Added ListIPS()
  • Added GetIP()
  • Added GetDomainTracking()
  • Added GetDomainConnection()
  • Added UpdateDomainConnection()
  • Added CreateExport()
  • Added ListExports()
  • Added GetExports()
  • Added GetExportLink()
  • Added CreateTemplate()
  • Added GetTemplate()
  • Added UpdateTemplate()
  • Added DeleteTemplate()
  • Added ListTemplates()
  • Added AddTemplateVersion()
  • Added GetTemplateVersion()
  • Added UpdateTemplateVersion()
  • Added DeleteTemplateVersion()
  • Added ListTemplateVersions()

List of improvements

  • Added a mailgun.MockServer which duplicates part of the mailgun API; suitable for testing
  • ListMailingLists() now uses the /pages API and returns an iterator
  • ListMembers() now uses the /pages API and returns an iterator
  • Renamed public interface methods to be consistent. IE: GetThing(), ListThing(), CreateThing()
  • Moved event objects into the mailgun/events package, so names like MailingList returned by API calls and MailingList as an event object don't conflict and confuse users.
  • Now using context.Context for all network operations
  • Test suite will run without MG_ env vars defined
  • ListRoutes() now uses the iterator interface
  • Added SkipNetworkTest()
  • Removed ginkgo and gomega tests
  • Removed GetStats() As the /stats endpoint is depreciated
  • Renamed GetStatsTotals() to GetStats()
  • Renamed GetUnsubscribes to ListUnsubscribes()
  • Renamed Unsubscribe() to CreateUnsubscribe()
  • Renamed RemoveUnsubscribe() to DeleteUnsubscribe()
  • GetStats() now takes an *opt argument to pass optional parameters
  • Modified GetUnsubscribe() to follow the API
  • Now using golang modules
  • Removed deprecated methods NewMessage and NewMIMEMessage
  • ListCredentials() now returns an iterator
  • ListUnsubscribes() now returns an paging iterator
  • CreateDomain now accepts CreateDomainOption{}
  • CreateDomain() now supports all optional parameters not just spam_action and wildcard.
  • ListComplaints() now returns a page iterator
  • Renamed TagItem to Tag
  • ListBounces() now returns a page iterator
  • API responses with CreatedAt fields are now unmarshalled into RFC2822
  • Removed GetCode() from Bounce struct. Verified API returns 'string' and not 'int'
  • DomainList() now returns an iterator
  • Updated godoc documentation
  • Removed more deprecated types
  • Renamed ApiBase to APIBase
  • Removed gobuffalo/envy dependency
  • Updated copyright to 2019
  • Removed mailgun cli from project
  • Remove mention of the CLI in the README
  • Fix #142 - Allow only CC or BCC recipients
  • Fix #138 - Send() now warns if domain or api key is not provided
  • Fix #113 - Send() now responds with a useful error if the server closed connection prematurely
  • Fix #112 - Now unquote variables added to the message before send
  • ListEvents() now returns a list of typed events
mailgun-go - Release v2.0.0

Published by thrawn01 almost 6 years ago

Released from PR #132

  • API Exported method name clean up
  • Move Email Validations into a separate struct
  • Updated events list processing to support mailing list events
  • Support for public and private email validation
  • General code clean up
mailgun-go - Final 1.0 Release

Published by thrawn01 about 6 years ago

This is the final release before 2.0. Those who wish to continue using the 1.X release should pin this version number.

mailgun-go - Fixing date format

Published by mbanzon about 8 years ago

Fixed the date format for stats fetching.