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",
});
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!
v24
November 29, 2023