email

package
v0.0.1-dev-1fe1019 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecipientCollection

func RecipientCollection() string

func SenderCollection

func SenderCollection() string

Types

type Options

type Options struct {
	Recipients []Recipient `json:"recipients" bson:"recipients"`
	Senders    []Sender    `json:"senders" bson:"senders"`
}

type Recipient

type Recipient struct {
	Email string `json:"email" bson:"email"`
	Note  string `json:"note" bson:"note"`
}

func (*Recipient) CheckFormat

func (r *Recipient) CheckFormat() error

type Sender

type Sender struct {
	Host     string `json:"host" bson:"host"`
	Port     int    `json:"port" bson:"port"`
	Username string `json:"username" bson:"username"`
	Password string `json:"password" bson:"password"`
	Email    string `json:"email" bson:"email"`
}

func (*Sender) Address

func (s *Sender) Address() string

func (*Sender) UserAuth

func (s *Sender) UserAuth() smtp.Auth

Jump to

Keyboard shortcuts

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