1
2
3
4
5
6
7
8
// 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
1
2
3
4
5
6
7
8
// 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
1
Next