Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix(smtp): fix host name error in smtp authentication (#9674)
George289edb9d0c7b
diff --git a/backend/plugin/mail/mail.go b/backend/plugin/mail/mail.goindex 2162729de8..497d19d5b8 100644--- a/backend/plugin/mail/mail.go+++ b/backend/plugin/mail/mail.go@@ -188,7 +188,7 @@ func (c *SMTPClient) SendMail(e *Email) error {case SMTPEncryptionTypeNone:return e.e.Send(fmt.Sprintf("%s:%d", c.host, c.port), c.getAuth())case SMTPEncryptionTypeSSLTLS:- return e.e.SendWithTLS(fmt.Sprintf("%s:%d", c.host, c.port), c.getAuth(), &tls.Config{})+ return e.e.SendWithTLS(fmt.Sprintf("%s:%d", c.host, c.port), c.getAuth(), &tls.Config{ServerName: c.host})case SMTPEncryptionTypeSTARTTLS:return e.e.SendWithStartTLS(fmt.Sprintf("%s:%d", c.host, c.port), c.getAuth(), &tls.Config{InsecureSkipVerify: true})default: