Skip to content

Add CTA support to email resend and template#103

Merged
goldlabelapps merged 1 commit intomasterfrom
staging
Apr 28, 2026
Merged

Add CTA support to email resend and template#103
goldlabelapps merged 1 commit intomasterfrom
staging

Conversation

@goldlabelapps
Copy link
Copy Markdown
Owner

Expose optional CTA label/url in the resend API and wire them into the HTML template. Updated app/api/notify/resend.py to accept cta_label and cta_url in the request schema and EmailRequest model, and to pass defaults into goldlabel_email. Modified app/utils/email_templates/goldlabel.py to add _BASE_URL, accept cta_label/cta_url parameters, update header/footer/styles, and render a full-width CTA button. Added app/utils/email_templates/goldlabel.bak.py as a backup of the previous template.

Expose optional CTA label/url in the resend API and wire them into the HTML template. Updated app/api/notify/resend.py to accept cta_label and cta_url in the request schema and EmailRequest model, and to pass defaults into goldlabel_email. Modified app/utils/email_templates/goldlabel.py to add _BASE_URL, accept cta_label/cta_url parameters, update header/footer/styles, and render a full-width CTA button. Added app/utils/email_templates/goldlabel.bak.py as a backup of the previous template.
@goldlabelapps goldlabelapps merged commit e602b44 into master Apr 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant