1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { email } from "https://esm.town/v/std/email?v=11";
export default async function emailJasonAboutValTown(interval: Interval) {
// no-op if it's not 2024: I don't want to email Jason every year!
const is2024 = new Date().getFullYear() === 2024;
if (!is2024) return;
const html = `
<main>
<p>Hey Jason, following up on our conversation back in December about getting Steve Krouse on LWJ to explore Val Town with you!</p>
<p>Hope all is well, Pete</p>
<p><em>(This email was sent programmatically via a val.town scheduled function.)</em></p>
</main>
`;
email({
to: "jason@learnwithjason.dev",
subject: "Following up on a Val Town LWJ episode",
html,
});
}