package
Version:
v0.0.0-...-92f0e48
Opens a new window with list of versions in this module.
Published: Nov 18, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func New(user, password, host, title string) *myEmail
-
func SendToMail(user, password, host, title, subject, body, mailtype string, to []string) error
func New(user, password, host, title string) *myEmail
New 新建一个
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.