public function mailInvoice(AnCommandContext $context)
    {
        if ($this->getItem()) {

            $mails[] = array(
                'to' => $this->getItem()->person->email,
                'subject' => AnTranslator::_('COM-SUBSCRIPTIONS-CONFIRMATION-MESSAGE-SUBJECT'),
                'template' => 'invoice',
            );

            $this->mail($mails);
        }
    }
public function mailInvoice(AnCommandContext $context)
    {
        if ($this->getItem()) {

            $mails[] = array(
                'to' => $this->getItem()->person->email,
                'subject' => AnTranslator::_('COM-SUBSCRIPTIONS-CONFIRMATION-MESSAGE-SUBJECT'),
                'template' => 'invoice',
            );

            $this->mail($mails);
        }
    }
public function mailInvoice ( AnCommandContext $ context ) { if ( $ this -> getItem ( ) ) { $ mails [ ] = array ( 'to' => $ this -> getItem ( ) -> person -> email , 'subject' => AnTranslator :: _ ( 'COM-SUBSCRIPTIONS-CONFIRMATION-MESSAGE-SUBJECT' ) , 'template' => 'invoice' , ) ; $ this -> mail ( $ mails ) ; } }
Mail an invoice after adding a subscription.

@param AnCommandContext $context
Mail an invoice after adding a subscription .