Commit Graph

24 Commits

Author SHA1 Message Date
cloudzhou 5a5482c77f
leak opened file
should defer file.Close()
2019-09-27 19:27:44 +08:00
hsht 8cfd7f5c19 email的Attach和AttachFile 的参数检查逻辑有误。len(args) < 1 && len(args) > 2 改为 len(args) < 1 || len(args) > 2 2019-06-28 20:09:23 +08:00
rahal 9499b3eb90 Emailer : Should use config Username only if no From is provided.
Should fix the case where Username is not an email.
2016-09-27 16:21:41 +01:00
miraclesu bf870eb9a2 mv mime.QEncoding.Encode logic to mail
it is named qEncode
2016-01-26 20:50:03 +08:00
miraclesu f26d360ec9 Fix vet fail 2016-01-26 14:54:36 +08:00
miraclesu 5930f27da7 Fix mail Chinese subject garbled bug 2016-01-25 22:55:40 +08:00
miraclesu 4de91f675d show from when Config from is empty 2016-01-25 22:29:45 +08:00
miraclesu a80feb00b8 Fix utils mail from field can't including Chinese bug 2016-01-25 18:15:08 +08:00
astaxie da36d1d0e7 fix the wrong io.Writer 2016-01-18 00:03:39 +08:00
astaxie 9b2597be68 fix the mail send empty subject 2016-01-17 23:48:09 +08:00
astaxie 566aab4354 mail send support Address format 2016-01-17 22:49:02 +08:00
astaxie c6448727de golint utils 2015-09-14 23:35:13 +08:00
astaxie 1d8afdc9c9 gofmt -s & go_vet 2015-05-25 09:10:34 +08:00
TossPig fc07419938 Update mail.go 2014-10-11 00:42:01 +08:00
TossPig d69eee23f0 添加错误返回
不知道英文区的人能否看懂Cnglish。。。
2014-10-11 00:38:31 +08:00
TossPig 41de7c7db6 fix
修改一个错误。
看到text/template包的写法,和你的想法是一致的。
2014-10-11 00:02:36 +08:00
TossPig 6a33647f30 修改参数类型
为了保持向后兼容,
2014-10-10 23:40:02 +08:00
TossPig e5134873be 支持发送邮件内嵌附件
为*Email.AttachFile和Email.Attach增加了一个参数"id".
当id不为空时,设置头部信息Content-Disposition为inline,并添加Content-ID头的值为id
2014-10-10 14:40:07 +08:00
astaxie a144769515 update the documents & comments 2014-08-18 16:41:43 +08:00
astaxie fefd8ddb5b beego: update licence& fix #669 2014-07-03 23:40:21 +08:00
astaxie 0f170a80da update the comments fix #658 2014-06-25 10:39:37 +08:00
astaxie c188cbbcb4 update all files License 2014-05-17 02:26:50 +08:00
傅小黑 ce2984f09a add comments for testing, utils and validation packages 2014-02-07 16:07:31 +08:00
astaxie d06c04277f support send mail 2014-01-08 22:31:26 +08:00