mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 09:09:02 +00:00
check for smtp AUTH extension
This commit is contained in:
parent
87be4623cf
commit
b9881d1e7b
|
@ -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 a new issue