Send mailing list emails
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -40,6 +40,13 @@ const (
|
||||
ActionTrustCenterAccessUpdate = "core:trust-center-access:update"
|
||||
ActionTrustCenterAccessDelete = "core:trust-center-access:delete"
|
||||
|
||||
// MailingListUpdate actions
|
||||
ActionMailingListUpdateList = "core:mailing-list-update:list"
|
||||
ActionMailingListUpdateCreate = "core:mailing-list-update:create"
|
||||
ActionMailingListUpdateUpdate = "core:mailing-list-update:update"
|
||||
ActionMailingListUpdateSend = "core:mailing-list-update:send"
|
||||
ActionMailingListUpdateDelete = "core:mailing-list-update:delete"
|
||||
|
||||
// MailingList actions
|
||||
ActionMailingListUpdate = "core:mailing-list:update"
|
||||
|
||||
|
||||
@@ -664,6 +664,7 @@ func (s *DocumentService) SendSigningNotifications(
|
||||
subject,
|
||||
textBody,
|
||||
htmlBody,
|
||||
nil,
|
||||
)
|
||||
|
||||
if err := email.Insert(ctx, tx); err != nil {
|
||||
@@ -2010,6 +2011,7 @@ func (s *DocumentService) SendExportEmail(
|
||||
subject,
|
||||
textBody,
|
||||
htmlBody,
|
||||
nil,
|
||||
)
|
||||
|
||||
if err := email.Insert(ctx, tx); err != nil {
|
||||
|
||||
@@ -635,6 +635,7 @@ func (s FrameworkService) SendExportEmail(
|
||||
subject,
|
||||
textBody,
|
||||
htmlBody,
|
||||
nil,
|
||||
)
|
||||
|
||||
if err := email.Insert(ctx, tx); err != nil {
|
||||
|
||||
@@ -374,6 +374,7 @@ func (s TrustCenterAccessService) sendAccessEmail(ctx context.Context, tx pg.Con
|
||||
subject,
|
||||
textBody,
|
||||
htmlBody,
|
||||
nil,
|
||||
)
|
||||
|
||||
if err := accessEmail.Insert(ctx, tx); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user