Commit ee9641c6 authored by eileen's avatar eileen 🎱 Committed by GitHub

Merge pull request #9906 from mattwire/verp_config_warning

CRM-20196: Add a useful message when the user didn't setup bounce processing pro…
parents f5d8dda2 67cbadb9
......@@ -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