Send mailing list emails

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-03-05 18:05:41 +01:00
parent aa01c40184
commit 85ec106cd6
67 changed files with 7615 additions and 160 deletions

View File

@@ -141,6 +141,7 @@ func (s AccountService) ChangeEmail(ctx context.Context, identityID gid.GID, req
subject,
textBody,
htmlBody,
nil,
)
err = confirmationEmail.Insert(ctx, tx)

View File

@@ -352,6 +352,7 @@ func (s AuthService) SendPasswordResetInstructionByEmail(
subject,
textBody,
htmlBody,
nil,
)
err = passwordResetEmail.Insert(ctx, tx)
@@ -420,6 +421,7 @@ func (s AuthService) CreateIdentityWithPassword(
subject,
textBody,
htmlBody,
nil,
)
err = s.pg.WithTx(
@@ -617,6 +619,7 @@ func (s AuthService) SendMagicLink(ctx context.Context, req *SendMagicLinkReques
subject,
textBody,
htmlBody,
nil,
)
if err := magicLinkEmail.Insert(ctx, tx); err != nil {

View File

@@ -415,6 +415,7 @@ func (s *OrganizationService) InviteUser(
subject,
textBody,
htmlBody,
nil,
)
err = email.Insert(ctx, tx)