Skip to content

kougazhang/email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Email-SSL

代码在阿里云服务器和阿里云邮箱服务下,已通过测试.

使用阿里云的服务发送邮件必须是 https,SSL 传输. http 的 25 端口已被禁用。

参考链接:https://help.aliyun.com/document_detail/29449.html

端口,465;

host, smtp.mxhichina.com

发件人和 email.Username 应该是一致的,否则阿里云服务器会抛出异常.

例子

usage:
	email = Email{
	Host:     Conf["host"],
	Port:     Conf["port"],
	Username: Conf["username"],
	Password: Conf["password"],
	}
 email.SSLSend("收件人", "主题", "正文")

About

golang emial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages