email

package
v1.2.54 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NX_appKey = "AC6DycRG"
View Source
var NX_from = "service@gt1.game"
View Source
var NX_secretKey = "UiuVzL7O"
View Source
var NX_templateName = "verify code"

Functions

func Send

func Send(to, title, body string) error

Types

type Email

type Email interface {
	Send(to, title, body string) error
}

func Select

func Select(pl string) Email

type MailGmailImpl

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

func (*MailGmailImpl) Send

func (m *MailGmailImpl) Send(to, title, body string) error

type MailQQImpl

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

func (*MailQQImpl) Send

func (m *MailQQImpl) Send(to, title, body string) error

type NX_sendMailResponse

type NX_sendMailResponse struct {
	Msg    string `json:"msg"`
	Result string `json:"result"`
	Code   int    `json:"code"`
}

type NxEmail

type NxEmail struct {
}

func (NxEmail) Send

func (NxEmail) Send(to, title, body string) error

Jump to

Keyboard shortcuts

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