Details
Description
When sending a mail through the CRM_Utils_Mail::send method, it is not possible to override the empty "replyto" header with an altered "from" value. The default value is the original "from", not the altered one.
code snippet from CRM_Utils_Mail::send method
$from = CRM_Utils_Array::value('from', $params); if (!$returnPath) { $returnPath = self::pluckEmailFromHeader($from); } $params['returnPath'] = $returnPath; // first call the mail alter hook CRM_Utils_Hook::alterMailParams($params); ... // CRM-11295: Omit reply-to headers if empty; this avoids issues with overzealous mailservers $replyTo = CRM_Utils_Array::value('replyTo', $params, $from);