Commit 67cbadb9 authored by Matthew Wire's avatar Matthew Wire

Add a useful message when the user didn't setup bounce processing properly

parent 4a6f91c1
......@@ -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,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment