You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No send path validates the template type. A template of type page can be broadcast, scheduled through a campaign, or sent through the transactional endpoint. Only the dashboard picker filters by type.
Where
backend/internal/service/email.go:196,261,550 — templates fetched by id only.
backend/internal/service/campaign.go:53.
The only page checks are on the unsubscribe rendering paths (email.go:998, service/project.go:181).
Impact
A unsubscribe-page template can be mailed to the whole list.
Proposed fix
Require type = 'email' when creating a send or a campaign.
Activity
fix(email): reject page templates on send, batch, broadcast, and camp…