Hi,
+{safeInviter} invited you to join {safeFamily} on YesChef — a shared shopping-list and recipe app.
+ +If you weren't expecting this, you can ignore this email — the link will expire.
+ """; + + var text = $""" + {inviterName} invited you to join {familyName} on YesChef. + + Accept the invitation: + {joinUrl} + + If you weren't expecting this, you can ignore this email — the link will expire. + """; + + return new EmailMessage(toAddress, subject, html, text); + } +} diff --git a/src/backend/YesChef.Api/Entities/Invite.cs b/src/backend/YesChef.Api/Entities/Invite.cs new file mode 100644 index 0000000..bba425f --- /dev/null +++ b/src/backend/YesChef.Api/Entities/Invite.cs @@ -0,0 +1,25 @@ +namespace YesChef.Api.Entities; + +///+ We'll email a join link that expires in 7 days. The recipient's email is automatically confirmed when they sign up. +
+ + {#if invites.length > 0} ++ The link sent to {pendingRevoke.email} will stop working immediately. +
+Family shopping & recipes
Looking up your invitation…
+ {:else if invite} +You've been invited to {invite.familyName}
++ Set a name and password below to finish creating your account + ({invite.email}). +
+