mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 18:25:56 +01:00
Merge pull request #1511 from ywk253100/170303_bugfix
Fix bug in sending email
This commit is contained in:
commit
fb77c1a7e3
@ -37,11 +37,12 @@ type Mail struct {
|
||||
Message string
|
||||
}
|
||||
|
||||
var mc models.Email
|
||||
var mc *models.Email
|
||||
|
||||
// SendMail sends Email according to the configurations
|
||||
func (m Mail) SendMail() error {
|
||||
mc, err := config.Email()
|
||||
var err error
|
||||
mc, err = config.Email()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user