Search
Code238
} ); console.email(JSON.stringify(result), "testPostResult");}
export let ip_address = (params) => { console.email(`message: ${params.ips}`, "[ppsaver]-[address]"); return `sent`;};
}); if (runs?.data?.length ?? 0 > 0) { console.email({ html: prepareRunErrorsEmail(runs.data), }, "Your val executions resulted in errors");
export let consoleEmailEx = () => { console.email(`message the current time is ${new Date()}`); // 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" });};
californiaBusinessNotificationsLast = list; if (newEntries.length || removedEntries.length) { console.email( `Removed entries:
export const readSamaStartupAdvice = () => console.email( "https://blog.samaltman.com/startup-advice", "Read sama advice ",
) ).results[1].measurements.find((m) => m.parameter === "pm25").value; if (pm25 > 50) console.email(null, `AQI is ${pm25}, close your windows!`);};
if (currentLeader.name.toLowerCase() === "rodrigo") {} else { console.email({ html: `<h1>${currentLeader.name} is the new leader</h1>`, subject: "someone broke your record in deno game",
// 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" });})();