mirror of
https://github.com/go-gitea/gitea
synced 2024-12-25 01:54:26 +00:00
Merge pull request #593 from mcheng89/dev
check for smtp AUTH extension
This commit is contained in:
commit
beb8a77fc5
@ -82,7 +82,7 @@ func sendMail(hostAddressWithPort string, auth smtp.Auth, from string, recipient
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if auth != nil {
|
if ok, _ := client.Extension("AUTH"); ok && auth != nil {
|
||||||
if err = client.Auth(auth); err != nil {
|
if err = client.Auth(auth); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user