consoleEmailEx
Script
v1
Fork
1
2
3
4
5
6
7
// email yourself as easily as logging to the console
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"
}
)
;
}
)
(
)
;