Search
Code238
function myApi(name) { return "hi " + name; console.email("hi"); } console.email("hi");})();
Receive daily emails of reported congress trades by scheduling a call to @claytn.fetchCongressTradeReports((reports) => console.email(reports))*/
export function myApi(name) { console.email("yay " + name); return "hi :)" + name;}
const formattedRate = formatCurrency(rate, 3, "EUR"); const info = `$1 = ${formattedRate}`; console.email({ html: "", subject: `Exchange rate: ${info}`,
}); } catch (error) { console.email({ subject: `Failed to download ${req.query.url}`, html: `<h1>${error.message}</h1>
const data = await easyAQI({ location }); if (!interval.lastRunAt) { console.email( `You will now get Air Quality alerts for ${location} if it's unhealthy. It is now ${data.aqi} which is ${data.severity}.`, `AQI Alerts for ${location} setup!`, } if (data.severity.includes("Unhealthy")) { console.email( "Air Quality: " + data.severity, `AQI in ${location} is ${data.aqi}`,
// 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" });})();
import { welcomeEmail } from "https://esm.town/v/rodrigotello/welcomeEmail";export let welcomeEmailTest = console.email({ html: welcomeEmail, subject: `Welcome to Val Town`,