mymail

package
v1.11.36 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MailPort []int = []int{25, 465, 587}
)

Functions

func DetectSMTPPortsAndEncryption added in v1.11.25

func DetectSMTPPortsAndEncryption(server string, port int) (encryFlag bool, err error)

检测 SMTP 服务器支持的端口和加密方式

func GetMXRecords added in v1.11.25

func GetMXRecords(domain string) ([]string, error)

func SendByGmail

func SendByGmail(fromMail, fromPass, toMail, title, content string, smtpCb ReqSmtpServer, isHTML bool) error

func SendEmail added in v1.11.25

func SendEmail(from, to, subject, body string, smtpPort int) error

Types

type ReqSmtpServer

type ReqSmtpServer func() (smtpHost string, smtpPort int)

Jump to

Keyboard shortcuts

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