email

package
v0.0.1-dev-9d9dee8 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 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"`
	IsTestable bool   `json:"isTestable" bson:"-"`
}

func (*Recipient) CheckEmailFormat

func (r *Recipient) CheckEmailFormat() 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"`
	AccessVerified bool   `json:"accessVerified" bson:"accessVerified"`
}

func (*Sender) Address

func (s *Sender) Address() string

func (*Sender) ResetAccessVerification

func (s *Sender) ResetAccessVerification()

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