import { thisEmail } from "https://esm.town/v/stevekrouse/thisEmail";
import { mail } from "https://esm.town/v/stevekrouse/mail";
export const emailEcho = function (email: Email) {
return mail({
to: email.from,
from: thisEmail(),
subject: "Re: " + email.subject,
text: email.text,
html: email.html,
});
};
interface Email {
from: string;
to: string[];
subject: string;
text: string;
html: string;
}