email

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func SendLoginVerifyCode

func SendLoginVerifyCode(smtpHost, smtpPort, from, password, username, to, code, organization string) error

SendLoginVerifyCode 发送登录验证码

func SendRegisterVerifyCode added in v0.4.7

func SendRegisterVerifyCode(smtpHost, smtpPort, from, password, username, to, code, organization string) error

SendRegisterVerifyCode 发送注册验证码

func SendResetPasswordVerifyCode

func SendResetPasswordVerifyCode(smtpHost, smtpPort, from, password, username, to, code, organization string) error

SendResetPasswordVerifyCode 发送重置密码验证码

Types

type SendType added in v0.4.7

type SendType string
const (
	RegisterSender      SendType = "register"
	LoginSender         SendType = "login"
	ResetPasswordSender SendType = "resetPassword"
)

func (SendType) String added in v0.4.7

func (s SendType) String() string

type VerifyCodeSender added in v0.4.7

type VerifyCodeSender func(smtpHost, smtpPort, from, password, username, to, code, organization string) error

Jump to

Keyboard shortcuts

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