Misleading System Status message when CIVICRM_MAIL_LOG_AND_SEND is set
Overview
When one turns on the setting CIVICRM_MAIL_LOG_AND_SEND by following the documentation here: https://docs.civicrm.org/dev/en/latest/tools/debugging/#changing-file-based-settings which requires that you turn on CIVICRM_MAIL_LOG too
You get this system status warning:
This is misleading because mail IS going out AND being logged.
Reproduction steps
- Turn on the setting CIVICRM_MAIL_LOG_AND_SEND by following the documentation here: https://docs.civicrm.org/dev/en/latest/tools/debugging/#changing-file-based-settings which requires that you turn on CIVICRM_MAIL_LOG too
- Go to CiviCRM Admin Menu -> Administration Console -> System Status
Current behaviour
You will see an error telling you outbound email has been disabled:
But outbound email is going out
Expected behaviour
no warning
Comments
Relevant code is here: Code is here: https://github.com/civicrm/civicrm-core/blob/6.1/CRM/Utils/Check/Component/Env.php#L151
I will open a PR