Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DE-1387 Remove func (mg *MailgunImpl) NewMIMEMessage(…) *Message  #366

Merged
merged 1 commit into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions mailgun.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ import (
"context"
"errors"
"fmt"
"io"
"net/http"
"os"
"sync"
Expand Down Expand Up @@ -144,8 +143,6 @@ type Mailgun interface {
// TODO(v5): switch m to SendableMessage interface
Send(ctx context.Context, m *Message) (mes string, id string, err error)
ReSend(ctx context.Context, id string, recipients ...string) (string, string, error)
// Deprecated: use func NewMIMEMessage instead of method.
NewMIMEMessage(body io.ReadCloser, to ...string) *Message

ListBounces(opts *ListOptions) *BouncesIterator
GetBounce(ctx context.Context, address string) (Bounce, error)
Expand Down
7 changes: 0 additions & 7 deletions messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,6 @@ func NewMIMEMessage(body io.ReadCloser, to ...string) *Message {
}
}

// Deprecated: use func NewMIMEMessage instead of method.
//
// TODO(v5): remove this method
func (*MailgunImpl) NewMIMEMessage(body io.ReadCloser, to ...string) *Message {
return NewMIMEMessage(body, to...)
}

func (m *Message) Domain() string {
return m.domain
}
Expand Down
Loading