}
$mailing->domain_id = CRM_Utils_Array::value('domain_id', $params, CRM_Core_Config::domainID());
- if (!isset($params['replyto_email']) &&
+ if (((!$id && empty($params['replyto_email'])) || !isset($params['replyto_email'])) &&
isset($params['from_email'])
) {
$params['replyto_email'] = $params['from_email'];
// get all the groups that this user can access
// if they dont have universal access
$groupNames = civicrm_api3('Group', 'get', array(
- 'is_active' => '',
'check_permissions' => TRUE,
'return' => array('title', 'id'),
'options' => array('limit' => 0),