1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 10:18:38 +00:00

Add send register confirm mail

This commit is contained in:
Unknown
2014-03-19 08:27:27 -04:00
parent fbbae2b721
commit de087c7b4a
10 changed files with 204 additions and 28 deletions

View File

@@ -9,6 +9,13 @@ import (
"github.com/gogits/gogs/modules/base"
)
// Create New mail message use MailFrom and MailUser
func NewMailMessage(To []string, subject, body string) Message {
msg := NewHtmlMessage(To, base.MailService.User, subject, body)
msg.User = base.MailService.User
return msg
}
func GetMailTmplData(user *models.User) map[interface{}]interface{} {
data := make(map[interface{}]interface{}, 10)
data["AppName"] = base.AppName