Search
Code238
const url = fetchCat(); const html = `Here's a random cat: <img src="${url}">`; console.email({ html }, "random cat");};
lastRunAt: new Date("2000/1/1"), }); if (items.length) console.email(items, `New from ${name} RSS`); return { name, items }; });
export let handleForm = (params) => { console.email(params, "New form submission"); subscriberSubMissionForm.push(Object.values(params)[0]); return `I heard you say ${Object.keys(params)[0]} is ${
export function myApi(name) { return console.email("hello there", "email n shit");}
import { welcomeEmail } from "https://esm.town/v/rodrigotello/welcomeEmail?v=142";export let emailMe = console.email({ html: welcomeEmail, subject: "Welcome to Val Town",
// email yourself as easily as logging to the consoleexport let consoleEmailEx = (() => { console.email("message"); // any JSON object can be the message console.email({ html: "<h1>hello html emails!</h1>" }); // you can send HTML emails console.email({ hi: "there" }, "Subject Line"); // optional second arg is the subject line console.email({ html: "<b>hi!</b>", subject: "Subject accepted here too" });})();
privateVals.length - newPrivateVals.length < threshold ) { console.email("Reaching free trial limit!"); }};
// email yourself as easily as logging to the consoleexport let consoleEmailEx = (() => { console.email("message"); // any JSON object can be the message console.email({ html: "<h1>hello html emails!</h1>" }); // you can send HTML emails console.email({ hi: "there" }, "Subject Line"); // optional second arg is the subject line console.email({ html: "<b>hi!</b>", subject: "Subject accepted here too" });})();