1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { email } from "https://esm.town/v/std/email?v=9";
import { testEmails } from "https://esm.town/v/stevekrouse/testEmails";
import { set } from "https://esm.town/v/std/set?v=11";
export async function testEmail2(e: {
from: string;
to: string[];
subject: string;
text: string;
html: string;
}) {
await set("testEmails", [...testEmails, {
...e,
from: "~redacted~",
}]);
return email({
text: JSON.stringify(e),
subject: "Emailed received at @stevekrouse.testEmail2!",
});
}