1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { email } from "https://esm.town/v/std/email?v=9";
import { fetchIPFSPosts } from "https://esm.town/v/stevedylandev/fetchIpfsPosts";
import { fetchPinataPosts } from "https://esm.town/v/stevedylandev/fetchPinatsPosts";
const emailBody1 = await fetchPinataPosts();
const emailBody2 = await fetchIPFSPosts();
export let emailExample = email({
html: `<h1>gm 🌞</h1> </br> <h4>Your weekly report of IPFS and Pinata are below πŸš€</h4> </br> ${
emailBody1 + emailBody2
}`,
subject: "Weekly Stack Overflow Repoort",
from: "stevedylandev.valname@valtown.email",
to: "team@pinata.cloud",
});
πŸ‘† This is a val. Vals are TypeScript snippets of code, written in the browser and run on our servers. Create scheduled functions, email yourself, and persist small pieces of data β€” all from the browser.