Browse Source

Fix #214

for-closed-social
Unknown 10 years ago
parent
commit
63baf76ab2
4 changed files with 5 additions and 3 deletions
  1. +1
    -1
      gogs.go
  2. +1
    -1
      modules/mailer/mail.go
  3. +2
    -0
      modules/setting/setting.go
  4. +1
    -1
      templates/VERSION

+ 1
- 1
gogs.go View File

@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
const APP_VER = "0.4.1.0602 Alpha"
const APP_VER = "0.4.1.0603 Alpha"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())

+ 1
- 1
modules/mailer/mail.go 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{} {

+ 2
- 0
modules/setting/setting.go 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")
}

+ 1
- 1
templates/VERSION View File

@ -1 +1 @@
0.4.1.0602 Alpha
0.4.1.0603 Alpha

Loading…
Cancel
Save