Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Cleanup

Daniel Hougaardc21ea6fb75a1
diff --git a/backend-pg/src/services/smtp/smtp-service.ts b/backend-pg/src/services/smtp/smtp-service.ts
index 10ab254902..1ed3533726 100644
--- a/backend-pg/src/services/smtp/smtp-service.ts
+++ b/backend-pg/src/services/smtp/smtp-service.ts
@@ -53,9 +53,7 @@ export const getTlsOption = (host?: SmtpHost | string, secure?: boolean) => {
export const smtpServiceFactory = (cfg: TSmtpConfig) => {
const smtp = createTransport({
...cfg,
- ...getTlsOption(cfg.host, cfg.secure),
- secure: false,
- port: 587
+ ...getTlsOption(cfg.host, cfg.secure)
});
const isSmtpOn = Boolean(cfg.host);
@@ -65,7 +63,6 @@ export const smtpServiceFactory = (cfg: TSmtpConfig) => {
const htmlToSend = temp(substitutions);
if (isSmtpOn) {
await smtp.sendMail({
to: recipients.join(", "),
subject: subjectLine,
html: htmlToSend