1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
interface FetchVerificationEmailHtmlParams {
email: string;
token: string;
reVerifying?: boolean;
}
export function fetchVerificationEmailHtml({ email, token, reVerifying }: FetchVerificationEmailHtmlParams) {
const confirmationLink = `https://petemillspaugh.com/email-confirmation?email=${email}&token=${token}`;
const html = `
<p>
${reVerifying ? "Looks like your verification link expired." : ""}
<a href="${confirmationLink}">Click here to confirm your subscription</a>.
And if you'd like, reply to this email to introduce yourself and lmk why you signed up!
</p>
`;
return 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!
November 22, 2023