From cf3a7c567bf11435cc5742f8cdba6d1c23f012d0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 2 Nov 2024 14:05:47 +0100 Subject: [PATCH] fix(deps): update module github.com/mailgun/mailgun-go/v4 to v4.18.0 (#881) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Niko Köser --- go.mod | 2 +- go.sum | 4 ++-- service/mailgun/mailgun.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index c920218e..1ff6fc96 100644 --- a/go.mod +++ b/go.mod @@ -19,7 +19,7 @@ require ( github.com/dghubble/oauth1 v0.7.3 github.com/go-telegram-bot-api/telegram-bot-api v4.6.4+incompatible github.com/line/line-bot-sdk-go v7.8.0+incompatible - github.com/mailgun/mailgun-go/v4 v4.17.3 + github.com/mailgun/mailgun-go/v4 v4.18.0 github.com/plivo/plivo-go/v7 v7.54.0 github.com/sendgrid/sendgrid-go v3.16.0+incompatible github.com/silenceper/wechat/v2 v2.1.7 diff --git a/go.sum b/go.sum index 6199e17c..c6b670c1 100644 --- a/go.sum +++ b/go.sum @@ -263,8 +263,8 @@ github.com/line/line-bot-sdk-go v7.8.0+incompatible h1:Uf9/OxV0zCVfqyvwZPH8CrdiH github.com/line/line-bot-sdk-go v7.8.0+incompatible/go.mod h1:0RjLjJEAU/3GIcHkC3av6O4jInAbt25nnZVmOFUgDBg= github.com/mailgun/errors v0.4.0 h1:6LFBvod6VIW83CMIOT9sYNp28TCX0NejFPP4dSX++i8= github.com/mailgun/errors v0.4.0/go.mod h1:xGBaaKdEdQT0/FhwvoXv4oBaqqmVZz9P1XEnvD/onc0= -github.com/mailgun/mailgun-go/v4 v4.17.3 h1:WoO48/VeXgAVSzjgzyeLvF08AoPzWU2EBz79INN8rEA= -github.com/mailgun/mailgun-go/v4 v4.17.3/go.mod h1:0ood70bQR/SffQ9NxIsAY06H+HG0hrvMVApfUp9TihI= +github.com/mailgun/mailgun-go/v4 v4.18.0 h1:KvCG0E21gJHM9gRhs/wu+/FED7wURxFU8WXvi/YMbhY= +github.com/mailgun/mailgun-go/v4 v4.18.0/go.mod h1:0ood70bQR/SffQ9NxIsAY06H+HG0hrvMVApfUp9TihI= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= diff --git a/service/mailgun/mailgun.go b/service/mailgun/mailgun.go index b7ecb658..6a515222 100644 --- a/service/mailgun/mailgun.go +++ b/service/mailgun/mailgun.go @@ -40,7 +40,7 @@ func (m *Mailgun) AddReceivers(addresses ...string) { // Send takes a message subject and a message body and sends them to all previously set chats. Message body supports // html as markup language. func (m Mailgun) Send(ctx context.Context, subject, message string) error { - mailMessage := m.client.NewMessage(m.senderAddress, subject, message, m.receiverAddresses...) + mailMessage := mailgun.NewMessage(m.senderAddress, subject, message, m.receiverAddresses...) _, _, err := m.client.Send(ctx, mailMessage) if err != nil {