1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00
This commit is contained in:
Unknown
2014-06-03 12:51:53 -04:00
parent 9c3aa6936a
commit 63baf76ab2
4 changed files with 5 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ func NewMailMessageFrom(To []string, from, subject, body string) Message {
// Create New mail message use MailFrom and MailUser
func NewMailMessage(To []string, subject, body string) Message {
return NewMailMessageFrom(To, setting.MailService.User, subject, body)
return NewMailMessageFrom(To, setting.MailService.From, subject, body)
}
func GetMailTmplData(user *models.User) map[interface{}]interface{} {

View File

@@ -330,6 +330,7 @@ func newSessionService() {
type Mailer struct {
Name string
Host string
From string
User, Passwd string
}
@@ -363,6 +364,7 @@ func newMailService() {
User: Cfg.MustValue("mailer", "USER"),
Passwd: Cfg.MustValue("mailer", "PASSWD"),
}
MailService.From = Cfg.MustValue("mailer", "FROM", MailService.User)
log.Info("Mail Service Enabled")
}