mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-04 09:19:06 +01:00
add error for hello func
This commit is contained in:
parent
5293ae1221
commit
2f1369c614
1 changed files with 4 additions and 1 deletions
|
@ -100,7 +100,10 @@ func sendMail(settings *setting.Mailer, recipients []string, msgContent []byte)
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
client.Hello(hostname)
|
||||
|
||||
if err = client.Hello(hostname); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// If not using SMTPS, alway use STARTTLS if available
|
||||
hasStartTLS, _ := client.Extension("STARTTLS")
|
||||
|
|
Loading…
Reference in a new issue