mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 00:57:44 +01:00
fix bug in sending email
This commit is contained in:
parent
ac6c26d6db
commit
0a80d7fee2
@ -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