mirror of https://github.com/gogs/gogs.git
chore: fix typo in message.go (#6587)
parent
899ec7ed54
commit
6f2b7fb853
|
@ -151,7 +151,7 @@ func (s *Sender) Send(from string, to []string, msg io.WriterTo) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If not using SMTPS, alway use STARTTLS if available
|
// If not using SMTPS, always use STARTTLS if available
|
||||||
hasStartTLS, _ := client.Extension("STARTTLS")
|
hasStartTLS, _ := client.Extension("STARTTLS")
|
||||||
if !isSecureConn && hasStartTLS {
|
if !isSecureConn && hasStartTLS {
|
||||||
if err = client.StartTLS(tlsconfig); err != nil {
|
if err = client.StartTLS(tlsconfig); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue