Commit 35b38b3f authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Actually send the mail if mailqueue was ignored

parent 79fede81
......@@ -406,7 +406,7 @@ class MailTemplateService implements SingletonInterface {
$mail = $this->addMailToMailQueue();
self::$mailObjectCache[$mail->getUid()] = $mail; // add it to cache to avoid extra DB queries
if ($this->ignoreMailQueue) {
//return $this->sendMailFromQueue($mail->getUid());
return $this->sendMailFromQueue($mail->getUid());
}
return TRUE;
......@@ -778,7 +778,7 @@ class MailTemplateService implements SingletonInterface {
* @throws IllegalObjectTypeException
* @throws NoSuchCacheException
*/
private function addMailToMailQueue(): Mail {
public function addMailToMailQueue(): Mail {
$mail = GeneralUtility::makeInstance(Mail::class);
$mail->setPid($this->pid);
$mail->setExtensionKey($this->extensionKey);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment