Skip to content

Commit

Permalink
Prevent sending files in emails
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound committed Jul 28, 2024
1 parent 1922c2f commit 4e8fe76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/form-handlers/src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ export const formToEmail = ({
html += "<table><tbody>";

for (const [key, value] of formData) {
if (typeof value !== "string") {
continue;
}
html += `<tr><td><strong>${key}:</strong></td><td>${value}</td></tr>`;
txt += `${key}: ${value}\n`;
}
Expand Down

0 comments on commit 4e8fe76

Please sign in to comment.