fix: remove private ClientId usage, use builder_dangerous for port 25
All checks were successful
BotServer CI/CD / build (push) Successful in 2m51s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-04 20:58:45 -03:00
parent a3226162a4
commit b8bf4ed5bb

View file

@ -364,16 +364,10 @@ impl EmailService {
.map_err(|e| format!("SMTP relay error: {}", e))? .map_err(|e| format!("SMTP relay error: {}", e))?
.port(smtp_port) .port(smtp_port)
.credentials(creds) .credentials(creds)
.hello_name(lettre::transport::smtp::ClientId::Domain(
"mail.pragmatismo.com.br".to_string(),
))
.build() .build()
} else { } else {
SmtpTransport::builder_dangerous(&smtp_host) SmtpTransport::builder_dangerous(&smtp_host)
.port(smtp_port) .port(smtp_port)
.hello_name(lettre::transport::smtp::ClientId::Domain(
"mail.pragmatismo.com.br".to_string(),
))
.build() .build()
}; };