mailgun

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMailgunEmailSender

func NewMailgunEmailSender(domain, apiKey string) (*mailgunEmailSender, error)

NewMailgunEmailSender creates a new instance of mailgunEmailSender. It initializes the Mailgun email sender with the provided domain and API key.

Parameters:

  • domain: The Mailgun domain to be used for sending emails.
  • apiKey: The API key to be used for authentication.

Returns:

  • *mailgunEmailSender: A pointer to the initialized mailgunEmailSender.
  • error: An error if the initialization fails, otherwise nil.

Types

type MailgunSubSet

type MailgunSubSet interface {
	NewMessage(from, subject, text string, to ...string) *mailgun.Message
	Send(ctx context.Context, m *mailgun.Message) (string, string, error)
}

MailgunSubSet defines a subset of the mailgun.Mailgun interface API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL