insertMails example

if (!isset($config['mail_template_type_id'])) {
                continue;
            }

            $mapping[] = ['event_name' => $event['event_name'], 'typeId' => $config['mail_template_type_id']];
        }

        $mails = $this->fetchMails($connectionarray_column($mapping, 'typeId'));

        $mails = $this->map($mapping$mails);

        $this->insertMails($connection$mails);

        // generate entries for order state mails         $ids = $this->getTypeIds($connection[
            'order_delivery.state.cancelled',
            'order_delivery.state.returned',
            'order_delivery.state.returned_partially',
            'order_delivery.state.shipped',
            'order_delivery.state.shipped_partially',
            'order_transaction.state.cancelled',
            'order_transaction.state.open',
            'order_transaction.state.paid',
            
Home | Imprint | This part of the site doesn't use cookies.