fix: remove private ClientId usage, use builder_dangerous for port 25
All checks were successful
BotServer CI/CD / build (push) Successful in 2m51s
All checks were successful
BotServer CI/CD / build (push) Successful in 2m51s
This commit is contained in:
parent
a3226162a4
commit
b8bf4ed5bb
1 changed files with 0 additions and 6 deletions
|
|
@ -364,16 +364,10 @@ impl EmailService {
|
|||
.map_err(|e| format!("SMTP relay error: {}", e))?
|
||||
.port(smtp_port)
|
||||
.credentials(creds)
|
||||
.hello_name(lettre::transport::smtp::ClientId::Domain(
|
||||
"mail.pragmatismo.com.br".to_string(),
|
||||
))
|
||||
.build()
|
||||
} else {
|
||||
SmtpTransport::builder_dangerous(&smtp_host)
|
||||
.port(smtp_port)
|
||||
.hello_name(lettre::transport::smtp::ClientId::Domain(
|
||||
"mail.pragmatismo.com.br".to_string(),
|
||||
))
|
||||
.build()
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue