mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-02 16:35:19 +02:00
Add send register confirm mail
This commit is contained in:
parent
fbbae2b721
commit
de087c7b4a
10 changed files with 204 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue