mailsenders

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogSender

type LogSender struct{}

func (*LogSender) Send

func (s *LogSender) Send(ctx context.Context, recipient string, invitation string, token string) (string, error)

type MailSender

type MailSender interface {
	Send(ctx context.Context, recipient string, invitation string, token string) (string, error)
}

type MailgunSender

type MailgunSender struct {
	Mailgun        *mailgun.MailgunImpl
	MailgunBaseUrl string
	SenderAddress  string
	TemplateName   string
	UseTestMode    bool
	Subject        string
}

func NewMailgunSender

func NewMailgunSender(domain string, token string, baseUrl string, senderAddress string, templateName string, subject string, useTestMode bool) MailgunSender

func (*MailgunSender) Send

func (m *MailgunSender) Send(ctx context.Context, recipient string, invitation string, token string) (string, error)

Jump to

Keyboard shortcuts

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