myemail

package
v0.0.0-...-4215923 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(user, password, host, title string) *myEmail

New 新建一个

func SendToMail

func SendToMail(user, password, host, title, subject, body, mailtype string, to []string) error

SendToMail 发送邮件

  • user : example@example.com login smtp server user
  • password: xxxxx login smtp server password
  • host: smtp.example.com:port smtp.163.com:25
  • to: example@example.com;example1@163.com;example2@sina.com.cn;...
  • subject:The subject of mail
  • body: The content of mail
  • mailtyoe: mail type html or text

Types

This section is empty.

Jump to

Keyboard shortcuts

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