Search
Code238
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" });})();
console.log(text.join("\n")); if (text.length) console.email( text.join("\n"), `Reddit Notifier (${total_matches} matches)`
export let email = async (...args: any[]) => { return await rateLimit("email", 10, () => { (console.email as any)(...args); });};
// } // { console.email(messageText, messageText);}
// email yourself as easily as logging to the console: `console.email`export 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" });})();// Forked from @stevekrouse.consoleEmailEx
lastRunAt, }); if (items.length) console.email(items, `New from ${name} RSS`); return { name, items }; });
const { action, sender, repository } = await req.json(); if (action === "created") { console.email( `Repository ${repository.full_name} starred by ${sender.login}`, );