Renders the email that greets a new account. sendWelcomeEmail
(user-service.ts) sends it after sign-up, in the instance's style and
language. It opens with the instance's GERBEUR_WELCOME_EMAIL_BODY, or the
built-in body, then says the digests are on, since they are by default, and
where to turn them off.
f
renderWelcomeEmail(username: string): RenderedEmail
Returns the welcome email of username. The instance's body has
{{username}} and {{site_name}} filled in; raw HTML in it passes
through, since it comes from whoever runs the instance, never from a user.
Usage
import * as mod from "api/mail/welcome.ts";