fix: set hello_name to mail.pragmatismo.com.br for Stalwart EHLO
Some checks failed
BotServer CI/CD / build (push) Failing after 5m57s
Some checks failed
BotServer CI/CD / build (push) Failing after 5m57s
This commit is contained in:
parent
f8e3b34a8a
commit
a3226162a4
1 changed files with 6 additions and 0 deletions
|
|
@ -364,10 +364,16 @@ 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