|
|
@ -31,8 +31,13 @@ const ( |
|
|
|
|
|
|
|
|
|
|
|
// Create New mail message use MailFrom and MailUser
|
|
|
|
// Create New mail message use MailFrom and MailUser
|
|
|
|
func NewMailMessageFrom(To []string, from, subject, body string) Message { |
|
|
|
func NewMailMessageFrom(To []string, from, subject, body string) Message { |
|
|
|
|
|
|
|
if setting.MailService.FixedNotifyFrom { |
|
|
|
|
|
|
|
return NewHtmlMessage(To, setting.MailService.From, subject, body)
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
return NewHtmlMessage(To, from, subject, body) |
|
|
|
return NewHtmlMessage(To, from, subject, body) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Create New mail message use MailFrom and MailUser
|
|
|
|
// Create New mail message use MailFrom and MailUser
|
|
|
|
func NewMailMessage(To []string, subject, body string) Message { |
|
|
|
func NewMailMessage(To []string, subject, body string) Message { |
|
|
|