Add initial onboard email

...and patterns for how to do email stuff in the future.
This commit is contained in:
Eli Ribble 2026-01-23 02:50:25 +00:00
parent aa7585563b
commit 44fdaa6c2b
No known key found for this signature in database
10 changed files with 205 additions and 31 deletions

View file

@ -97,8 +97,19 @@ func startWorkerText(ctx context.Context, channel chan jobText) {
}
func jobProcessEmail(job jobEmail) error {
log.Info().Str("dest", job.Destination).Str("type", string(job.Type)).Msg("Pretend doing email job")
return nil
switch job.Type {
case enums.CommsMessagetypeemailInitialContact:
return comms.SendEmailInitialContact(job.Destination)
default:
return errors.New("not implemented")
}
/*
case enums.CommsMessagetypeemailReportSubscriptionConfirmation:
case enums.CommsMessagetypeemailReportStatusScheduled:
case enums.CommsMessagetypeemailReportStatusComplete:
}
*/
}
func jobProcessText(job jobText) error {