【文件属性】:
文件名称:go-smtp:用Go编写的SMTP客户端和服务器库
文件大小:43KB
文件格式:ZIP
更新时间:2021-02-05 20:44:23
client mail server smtp lmtp
go-smtp
用Go编写的ESMTP客户端和服务器库。
产品特点
实施ESMTP客户端和服务器
支持SMTP 和
UTF-8对主题和消息的支持
支持
用法
客户
package main
import (
"log"
"strings"
"github.com/emersion/go-sasl"
"github.com/emersion/go-smtp"
)
func main () {
// Set up authentication information.
auth := sasl . NewPlainClient ( "" , "user@example.com" ,
【文件预览】:
go-smtp-master
----.build.yml(436B)
----backend.go(3KB)
----cmd()
--------smtp-debug-server()
----server.go(6KB)
----smtp.go(711B)
----server_test.go(28KB)
----example_test.go(3KB)
----lmtp_server_test.go(5KB)
----parse.go(2KB)
----client_test.go(29KB)
----LICENSE(1KB)
----client.go(18KB)
----backendutil()
--------transform_test.go(8KB)
--------backendutil.go(89B)
--------transform.go(2KB)
----.gitignore(276B)
----conn.go(24KB)
----go.sum(229B)
----README.md(3KB)
----data.go(3KB)
----go.mod(116B)
----lengthlimit_reader.go(813B)