mailer

package
v0.0.0-...-4c964c4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ToGoMail

func ToGoMail(dto Payload) *gomail.Message

Types

type GoMailClient

type GoMailClient struct {
	// contains filtered or unexported fields
}

func NewMailClient

func NewMailClient(
	host string,
	port int,
	username string,
	fromMail string,
	password string,
	insecure bool,
) GoMailClient

func (GoMailClient) Send

func (c GoMailClient) Send(_ context.Context, mailPayload Payload) error

type Mailer

type Mailer interface {
	Send(ctx context.Context, mailPayload Payload) error
}

func ProvideMailClient

func ProvideMailClient(config *types.Config) Mailer

type Payload

type Payload struct {
	CCRecipients []string
	ToRecipients []string
	Subject      string
	Body         string
	ContentType  string
	RepoRef      string
}

Jump to

Keyboard shortcuts

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