stmp

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SendResetError = &mail.SendError{
	Reason: mail.ErrSMTPReset,
}

Functions

func DialAndSend

func DialAndSend(c *mail.Client, messages ...*mail.Msg) error

func SendPasswordResetEmail

func SendPasswordResetEmail(userName, email, link string) error

func SendQuotaWarningCodeEmail

func SendQuotaWarningCodeEmail(userName, email string, quota int, noMoreQuota bool) error

func SendVerificationCodeEmail

func SendVerificationCodeEmail(email, code string) error

Types

type StmpConfig

type StmpConfig struct {
	Host     string
	Port     int
	Username string
	Password string
	From     string
}

func GetSystemStmp

func GetSystemStmp() (*StmpConfig, error)

func NewStmp

func NewStmp(host string, port int, username string, password string, from string) *StmpConfig

func (*StmpConfig) Render

func (s *StmpConfig) Render(to, subject, content string) error

func (*StmpConfig) Send

func (s *StmpConfig) Send(to, subject, body string) error

Jump to

Keyboard shortcuts

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