Skip to content

mail sender using redis as data storage written by go(golang.org)

License

Notifications You must be signed in to change notification settings

baiyuxiong/gomail

Repository files navigation

gomail

使用go语言编写的邮件发送器,读取redis list中的数据发送邮件。提供WEB页面查看发送日志。

Doc in English click here

安装

首先安装statgo,参考: https://github.com/akhenakh/statgo

go get github.com/baiyuxiong/gomail
cd $GOPATH/src/github.com/baiyuxiong/gomail
bower install
go run gomain.go

配置

cfg.json

  • httpAddress: 查看邮件日志的WEB地址
  • username: 登录用户名
  • password: 登录密码
  • sender: 邮件发送方式,支持"smtp"或者"sendcloud"
  • jobKey: redis中的读取邮件记录的LIST名称,通过"BRPOP $jobKey 0" 的方式使用
  • logKey: redis中存取邮件发送日志的LIST名称,通过"LPUSH $logKey %log%"方式存入日志

截图

About

mail sender using redis as data storage written by go(golang.org)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published