From 63d35299b9440cd94889e657b0512a75993191df Mon Sep 17 00:00:00 2001 From: Vilen Topchii <32271530+vtopc@users.noreply.github.com> Date: Mon, 2 Dec 2024 17:54:06 +0200 Subject: [PATCH] removed redundant --- messages_types_v5.go | 49 -------------------------------------------- 1 file changed, 49 deletions(-) diff --git a/messages_types_v5.go b/messages_types_v5.go index d34f3207..74e940fe 100644 --- a/messages_types_v5.go +++ b/messages_types_v5.go @@ -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 -}