Improve campaign personalization and contact duplicate handling.
Add merge tags for email/SMS, paginated removable recipients, PCM event panels for postcard campaigns, and a portal modal when phone/address matches an existing contact.
This commit is contained in:
@@ -5,6 +5,8 @@ import logging
|
||||
import requests
|
||||
from django.conf import settings
|
||||
|
||||
from messaging.services import render_merge_tags
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -21,6 +23,7 @@ def send_sms(message) -> str:
|
||||
body = message.body_snapshot or campaign.body_override or (
|
||||
campaign.template.body if campaign.template else ""
|
||||
)
|
||||
body = render_merge_tags(body, contact)
|
||||
|
||||
payload = {
|
||||
"api_key": api_key,
|
||||
|
||||
Reference in New Issue
Block a user