1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { email } from "https://esm.town/v/std/email?v=9";
import { set } from "https://esm.town/v/std/set?v=11";
import { testEmails } from "https://esm.town/v/stevekrouse/testEmails";
export async function testEmail2(e: Email) {
await set("testEmails", [...testEmails, {
...e,
from: "~redacted~",
}]);
return email({
text: JSON.stringify(e),
subject: "Emailed received at @stevekrouse.testEmail2!",
});
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
December 14, 2023