/** * Event listener function of the Enlight_Components_Mail_Send event * which fired on sending each mail in shopware. * * @param Enlight_Event_EventArgs $args */ public function onSendMail(Enlight_Event_EventArgs $args) { $this->mails[] = $args->getMail(); }