email

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package email

Package email

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.1.1

type Config struct {
	Addr      string `json:"addr" mapstructure:"addr" yaml:"addr"`
	Port      string `json:"port" mapstructure:"port" yaml:"port"`
	Username  string `json:"username" mapstructure:"username" yaml:"username"`
	Password  string `json:"password" mapstructure:"password" yaml:"password"`
	PoolCount int    `json:"pool_count" mapstructure:"pool_count" yaml:"pool_count"`
}

type Email added in v0.1.1

type Email interface {
	Send(e *email.Email, timeout time.Duration) (err error)
	Close()
}

func NewEmail added in v0.1.1

func NewEmail(config Config) (Email, error)

func NewEmailByAuth added in v0.1.1

func NewEmailByAuth(config Config, auth smtp.Auth, tlsConfig ...*tls.Config) (Email, error)

Jump to

Keyboard shortcuts

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