sender

package
v0.0.0-...-2130f68 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package sender provides email dispatch implementations supporting SMTP and syz-dashboard APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DashapiConfig

type DashapiConfig struct {
	Client        string
	Addr          string
	From          mail.Address
	ContextPrefix string
	SubjectPrefix string
}

DashapiConfig holds configuration for the Dashapi sender.

type Email

type Email struct {
	To        []string
	Cc        []string
	Subject   string
	InReplyTo string
	Body      []byte
	BugID     string
}

Email represents an email to be sent.

type SMTPConfig

type SMTPConfig struct {
	Host     string
	Port     int
	User     string
	Password string
	From     mail.Address
}

type Sender

type Sender interface {
	Send(ctx context.Context, email *Email) (string, error)
}

Sender defines the interface for sending emails.

func NewDashapiSender

func NewDashapiSender(cfg DashapiConfig) (Sender, error)

NewDashapiSender creates a new Dashapi sender.

func NewSMTPSender

func NewSMTPSender(cfg SMTPConfig) Sender

Jump to

Keyboard shortcuts

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