Browse Source

debug

master
linquan 3 weeks ago
parent
commit
abd074152c
  1. 21
      email.go
  2. 0
      manifest/config/server.crt
  3. 0
      manifest/config/server.key
  4. 0
      test/TapOpenId.json
  5. 0
      test/sub_siphoto_pkcs8.pem
  6. 0
      test/test.go
  7. 0
      test/testCdKey.go

21
email.go

@ -1,21 +0,0 @@
package main
import (
"log"
"net/smtp"
"github.com/jordan-wright/email"
)
func main() {
e := email.NewEmail()
e.From = "lin <linquan13950405063@163.com>"
e.To = []string{"349589071@qq.com"}
e.Bcc = []string{"linquan13950405063@163.com"}
e.Subject = "【桃源记2】验证码"
e.HTML = []byte("这是桃源记2后台登录的验证码 <br><br>验证码: 713379 <br><br>请在10分钟内使用。")
err := e.Send("smtp.163.com:25", smtp.PlainAuth("", "linquan13950405063@163.com", "YGefKDbTiwMRW3nM", "smtp.163.com"))
if err != nil {
log.Print(err)
}
}

0
server.crt → manifest/config/server.crt

0
server.key → manifest/config/server.key

0
TapOpenId.json → test/TapOpenId.json

0
sub_siphoto_pkcs8.pem → test/sub_siphoto_pkcs8.pem

0
test.go → test/test.go

0
testCdKey.go → test/testCdKey.go

Loading…
Cancel
Save