- Issue created by @goose2000
- π¬π§United Kingdom joachim
You can prevent a mail being sent with https://api.drupal.org/api/drupal/core%21core.api.php/function/hook_mail...
I work with a population that goes through a re-certification process every two years. Whenever they hear or see anything that says "Expire" etc. they do freak out To them, it's something about their certification expiring. Just poor choice of words for this use case.
I would like to disable the email all together. I would be nice if this were configurable for other use cases. I get that it can be customized through twig.
But for now, how would I disable this function? Just remove LicenseExpireNotify.php ?
Comment out ?
$message = $this->pluginManagerMail->mail('commerce_license', 'license_expire', $to, $langcode, $params);
if ($message['result']) {
return JobResult::success();
}
Thank you.
Active
3.0
Code
You can prevent a mail being sent with https://api.drupal.org/api/drupal/core%21core.api.php/function/hook_mail...