Go, Golang, Backend, Email, Smtp.
tlsConfig := &tls.Config{ InsecureSkipVerify: false, ServerName: smtpHost, } conn, err := tls.Dial("tcp", smtpHost+":"+smtpPort, tlsConfig) if err != nil { //Handle error } client, err := smtp.NewClient(conn, smtpHost) if err != nil { //Handle error } // Authenticate if err := client.Auth(auth);