Search
Code238
// 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" });})();
export let scheduler = () => { return 5; //console.email("", "STX: 05/19/23-06/19/23 is now available for 1000 points"); // any JSON object can be the message};
export let email = async (feedback: any) => { (console.email as any)(feedback, "New feedback for Commonplace");};
export let sendGmail = () => { console.email("hello", "hello");};
) ).results[1].measurements.find((m) => m.parameter === "pm25").value; if (pm25 > 50) console.email(null, `AQI is ${pm25}, close your windows!`);};
import { welcomeEmail } from "https://esm.town/v/rodrigotello/welcomeEmail?v=142";export let emailMe = console.email({ html: welcomeEmail, subject: "Welcome to Val Town",
export let intervalTesting = (ival: Interval) => { let lastRunAt = ival.lastRunAt; console.email(JSON.stringify(ival) + "\nDISABLE ME!!");};
// 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" });})();
// 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" });})();