package main import ( "github.com/zlsgo/email" "fmt" ) func main(){ address := "[email protected]" password := "" smtpServer := "smtp.exmail.qq.com:465" imapServer := "imap.exmail.qq.com:993" client, err := email.New(address, password, smtpServer, imapServer) // 发邮件 client.Send(to, subject string, message []byte) // 接收邮件 emails, err := client.Get() }