chore: auto-commit (97 archivos)
- .claude/CLAUDE.md - .claude/agents/fn-recopilador/SKILL.md - .claude/rules/INDEX.md - .claude/rules/cpp_apps.md - bash/functions/infra/build_cpp_windows.sh - cpp/CMakeLists.txt - cpp/PATTERNS.md - cpp/framework/app_base.cpp - cpp/framework/app_base.h - dev/issues/README.md - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"net"
|
||||
"net/smtp"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
// SMTPConnect establishes an authenticated SMTP connection using the given config.
|
||||
@@ -16,7 +17,7 @@ import (
|
||||
// Returns an *smtp.Client ready to use with SMTPSend.
|
||||
// The caller is responsible for calling client.Quit() when done.
|
||||
func SMTPConnect(cfg SMTPConfig) (*smtp.Client, error) {
|
||||
addr := fmt.Sprintf("%s:%d", cfg.Host, cfg.Port)
|
||||
addr := net.JoinHostPort(cfg.Host, strconv.Itoa(cfg.Port))
|
||||
|
||||
switch cfg.TLSMode {
|
||||
case "tls":
|
||||
|
||||
Reference in New Issue
Block a user