Skip to content

Commit

Permalink
removed redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
vtopc committed Dec 2, 2024
1 parent 7909519 commit 63d3529
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions messages_types_v5.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,52 +61,3 @@ type mimeMessageV5 struct {

body io.ReadCloser
}

// specific abstracts the common characteristics between regular and MIME messages.
type specificV5 interface {
// AddCC appends a receiver to the carbon-copy header of a message.
AddCC(string)

// AddBCC appends a receiver to the blind-carbon-copy header of a message.
AddBCC(string)

// SetHTML If you're sending a message that isn't already MIME encoded, it will arrange to bundle
// an HTML representation of your message in addition to your plain-text body.
SetHTML(string)

// SetAmpHTML If you're sending a message that isn't already MIME encoded, it will arrange to bundle
// an AMP-For-Email representation of your message in addition to your html & plain-text content.
SetAmpHTML(string)

// AddValues invoked by Send() to add message-type-specific MIME headers for the API call
// to Mailgun.
AddValues(*FormDataPayload)

// Endpoint tells Send() which endpoint to use to submit the API call.
Endpoint() string

// RecipientCount returns the total number of recipients for the message.
// This includes To:, Cc:, and Bcc: fields.
//
// NOTE: At present, this method is reliable only for non-MIME messages, as the
// Bcc: and Cc: fields are easily accessible.
// For MIME messages, only the To: field is considered.
// A fix for this issue is planned for a future release.
// For now, MIME messages are always assumed to have 10 recipients between Cc: and Bcc: fields.
// If your MIME messages have more than 10 non-To: field recipients,
// you may find that some recipients will not receive your e-mail.
// It's perfectly OK, of course, for a MIME message to not have any Cc: or Bcc: recipients.
RecipientCount() int

// SetTemplate sets the name of a template stored via the template API.
// See https://documentation.mailgun.com/en/latest/user_manual.html#templating
SetTemplate(string)

// AddRecipient appends a receiver to the To: header of a message.
// It will return an error if the limit of recipients have been exceeded for this message
AddRecipient(recipient string) error

// isValid yields true if and only if the message is valid enough for sending
// through the API.
isValid() bool
}

0 comments on commit 63d3529

Please sign in to comment.