From 67cbadb9c941d095d3655ef60c13978bdacb0ce6 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Mon, 27 Feb 2017 22:41:54 +0000 Subject: [PATCH] Add a useful message when the user didn't setup bounce processing properly --- CRM/Mailing/BAO/Mailing.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index 80056cae31..d746b5abc8 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -1093,6 +1093,10 @@ ORDER BY civicrm_email.is_bulkmail DESC $localpart = CRM_Core_BAO_MailSettings::defaultLocalpart(); $emailDomain = CRM_Core_BAO_MailSettings::defaultDomain(); + // Make sure the user configured the site correctly, otherwise you just get "Could not identify any recipients. Perhaps the group is empty?" from the mailing UI + if (empty($emailDomain)) { + CRM_Core_Error::debug_log_message('Error setting verp parameters, defaultDomain is NULL. Did you configure the bounce processing account for this domain?'); + } foreach ($verpTokens as $key => $value) { $verp[$key] = implode($config->verpSeparator, -- 2.25.1