Runs every 1 days
1
2
3
4
5
6
7
8
9
10
11
import { email } from "https://esm.town/v/std/email";
import { nasaImageDetails } from "https://esm.town/v/wallek/nasaImageDetails";
export const todaysNasaMail = async () => {
const { html, nasaAPOD } = await nasaImageDetails();
console.log({ html, nasaAPOD });
const mailMeTodaysNasaImage = await email({
html: "<a href=\"https://wallek-nasaImage.web.val.run\">Weblink</a><br/><br/><br/>" + html,
subject: `Daily NASA – ${nasaAPOD.title}`,
});
};
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!
October 25, 2023