diff --git a/CRM/Utils/Check/Component/Env.php b/CRM/Utils/Check/Component/Env.php index 8fc607b67e27..415fadad4855 100644 --- a/CRM/Utils/Check/Component/Env.php +++ b/CRM/Utils/Check/Component/Env.php @@ -835,6 +835,25 @@ public function checkDbEngine() { return $messages; } + /** + * ensure reply id is set to any default value + * @return array + */ + public function checkReplyIdForMailing() { + $messages = array(); + + if (!CRM_Mailing_PseudoConstant::defaultComponent('Reply', '')) { + $messages[] = new CRM_Utils_Check_Message( + __FUNCTION__, + ts('Reply Auto Responder is not set to any default value in Headers, Footers, and Automated Messages. This will disable the submit operation on any mailing created from CiviMail.', array(1 => 'href="' . CRM_Utils_System::url('civicrm/admin/component', 'reset=1') . '"')), + ts('No Default value for Auto Responder.'), + \Psr\Log\LogLevel::WARNING, + 'fa-reply' + ); + } + return $messages; + } + /** * Check for required mbstring extension * @return array