Readme

Email Echo Bot

Send an email to stevekrouse.emailEcho@valtown.email and it will send it back to you!

1
2
3
4
5
6
7
8
9
10
11
12
import { email } from "https://esm.town/v/std/email?v=12";
import { thisEmail } from "https://esm.town/v/stevekrouse/thisEmail";
export const emailEcho = async function(e: Email) {
return await email({
to: e.from,
from: thisEmail(),
subject: "Re: " + e.subject,
text: e.text,
html: e.html,
});
};
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
May 26, 2024