Merge pull request #20915 from inovea-conseil/FIX_Cmailfile

Fix cmailfile #20636
This commit is contained in:
Laurent Destailleur
2022-05-20 19:20:59 +02:00
committed by GitHub

View File

@@ -592,7 +592,7 @@ class CMailFile
}
$sendingmode = $this->sendmode;
if ($this->context == 'emailing' && !empty($conf->global->MAILING_NO_USING_PHPMAIL) && $sendingmode == 'mail') {
if ($this->sendcontext == 'emailing' && !empty($conf->global->MAILING_NO_USING_PHPMAIL) && $sendingmode == 'mail') {
// List of sending methods
$listofmethods = array();
$listofmethods['mail'] = 'PHP mail function';