Improve outreach compose, contact merge, and email assets.
Add a Quill email editor with DB-backed image storage, selectable PCM designs, postcard defaults for addressed contacts, and merge-by-phone/address on the contact form.
This commit is contained in:
@@ -6,7 +6,11 @@ from django.template.loader import get_template
|
||||
|
||||
from contacts.models import Channel
|
||||
from messaging.services import one_click_unsubscribe_url, preferences_url
|
||||
from public.email_branding import email_brand_context, plain_text_to_email_html
|
||||
from public.email_branding import (
|
||||
campaign_body_to_email_html,
|
||||
campaign_body_to_plain_text,
|
||||
email_brand_context,
|
||||
)
|
||||
|
||||
# Reported back on SMTP2GO webhooks when this header is selected in webhook settings.
|
||||
MONICA_MESSAGE_HEADER = "X-Monica-Message-Id"
|
||||
@@ -33,8 +37,8 @@ def send_email(message) -> str:
|
||||
|
||||
ctx = email_brand_context(
|
||||
title=subject,
|
||||
content=body,
|
||||
content_html=plain_text_to_email_html(body),
|
||||
content=campaign_body_to_plain_text(body),
|
||||
content_html=campaign_body_to_email_html(body),
|
||||
prefs_url=prefs_url,
|
||||
one_click_url=one_click_url,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user