Operate · 07
Marketing and email
Marketing tools share one audience and one sending configuration. The newsletter studio owns campaigns and automations; the Email Studio owns reusable designs; banners, social and push extend reach.
Newsletter studio
The marketing surface at /dashboard/newsletter/ owns topics, subscribers, segments, templates, campaigns, automations and delivery health. Subscribers can choose topics and frequency from the account preference centre.
| Surface | Path | Purpose |
|---|---|---|
| Topics | /dashboard/newsletter/topics/ | Public subscription preferences. |
| Subscribers | /dashboard/newsletter/ | Audience list, consent and export. |
| Segments | /dashboard/newsletter/segments/ | Live audience filters with preview counts. |
| Campaigns | /dashboard/newsletter/campaigns/ | Scheduled sends, A/B tests and optimal-time delivery. |
| Automations | /dashboard/newsletter/automations/ | Lifecycle journeys with delays and conditions. |
Email Studio
The email template editor is a three-pane studio: structure/library, live preview and inspector. It ships 30 email-safe sections across 12 collections, including headers, hero layouts, editorial content, product grids, offers, layout blocks, campaign journeys and transactional sections.
It supports drag reorder, insert, duplicate, hide, delete, repeaters, media picking, undo/redo, device preview, sections/raw HTML modes, theme overrides and legacy block conversion. Published templates render through the house email shell with the brand logo, social icons and tracking pixel.
# Open the template library
open http://127.0.0.1:8000/dashboard/emails/templates/
# Create or edit a template, then use Preview before savingRelative links such as /shop/ are accepted in inspector URL fields. Do not switch a live transactional template to raw HTML without testing the fallback text.
Transactional email
System templates cover order confirmation, shipping, gift cards, back-in-stock, newsletter welcome, password reset, account welcome, contact notification, refunds, abandoned carts and appointment confirmation/reminders. Delivery attempts are logged at /dashboard/emails/; failed messages can be retried by the jobs timer or retry_emails.
| Variable | Purpose |
|---|---|
DJANGO_EMAIL_BACKEND | SMTP or console delivery. |
DJANGO_EMAIL_HOST / port / user / password | SMTP credentials. |
DEFAULT_FROM_EMAIL | Sender shown in transactional mail. |
TRANSACTIONAL_EMAIL_PROVIDER | smtp, resend, sendgrid, postmark or mailgun. |
Campaigns and automations
- Build a segment and confirm its live count before writing the campaign.
- Choose a template from the Email Studio, then preview desktop and mobile.
- Schedule or send. A/B tests send a sample first; the winner goes to the remainder.
- Watch delivery in the campaign report and the email delivery log.
- Automations run from the jobs timer: welcome, paid order, abandoned bag, back-in-stock and inactive-contact journeys.
python manage.py send_email_campaigns --limit 10
python manage.py run_email_automations
python manage.py retry_emails --limit 100
SMTP and ESP resolution
The dashboard email settings win field by field while active; blank fields fall back to environment values. If the resolved backend is the console, messages print in the service log instead of being delivered. Newsletter delivery uses NEWSLETTER_ESP: local capture by default, Mailchimp when keys are present.
Send a test email from the settings workbench before a campaign. Check the delivery log for provider errors rather than assuming the send succeeded.
Social publishing and web push
The social scheduler at /dashboard/scheduler/ publishes due posts to configured X, LinkedIn, Meta/Instagram, Pinterest and TikTok adapters. Pinterest domain verification is managed in Settings → Search & social; paste the p:domain_verify tag and it is rendered in the public page head. Web push uses VAPID keys and the composer at /dashboard/push/; browser subscriptions are stored per customer.
Both surfaces are optional. Without provider credentials the adapters remain idle and the rest of the platform is unaffected.
Marketing checklist
- Consent and unsubscribe links are present in every campaign.
- Segment count and suppression list were reviewed before sending.
- Test email reached the inbox and the links resolve.
- The jobs timer is active and the next send window is correct.
- UTM parameters are set on links that feed analytics.
- Social and push credentials are configured only for the channels you actually use.