Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Commit 5896800

Browse files
committed
[Netlify] Disable tracking in contact form submission emails
1 parent 34429d5 commit 5896800

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/functions/submit-form.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,16 @@ async function sendEmail(client: client.MailService, email: Email): Promise<{sta
2828
type: "text/plain",
2929
value: `${email.message ? email.message : `${email.feedback}\n${email.otherFeedback}`}`
3030
}
31-
]
31+
],
32+
tracking_settings: {
33+
click_tracking: {
34+
enable: false,
35+
enable_text: false
36+
},
37+
open_tracking: {
38+
enable: false
39+
}
40+
}
3241
}
3342
try {
3443
await client.send(data);

0 commit comments

Comments
 (0)