set tls version to 1.2

This commit is contained in:
Cipher Vance
2025-11-15 19:11:39 -06:00
parent 85e49c9e9f
commit 1b91b72ffb

View File

@@ -59,6 +59,7 @@ func send(subject, body, recipient string) bool {
// Create TLS connection
tlsconfig := &tls.Config{
ServerName: cfg.SMTPServer,
MinVersion: tls.VersionTLS12
}
conn, err := tls.Dial("tcp", addr, tlsconfig)