This commit is contained in:
2026-10-03 12:23:33 +07:00
parent a8cfa96578
commit 14572d6562
5 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ func (s *sender) Send(ctx context.Context, message Message) error {
if err != nil {
return fmt.Errorf("email: smtp dial %s: %w", addr, err)
}
defer rawConn.Close()
defer func() { _ = rawConn.Close() }()
conn := tls.Client(rawConn, s.tlsConfig)
if deadline, ok := ctx.Deadline(); ok {