public function sendTicket()
    {
        // Get the mail sender or fallback to the admin email
        if (empty($from = Reservation::config()->get('mail_sender'))) {
            $from = Config::inst()->get('Email', 'admin_email');
        }

        $email = new Email();
        $email->setSubject(_t(
            'AttendeeMail.TITLE',
            'Your ticket for {event}',
            null,
            array(
                'event' => $this->Event()->Title
            )
        ));
        $email->setFrom($from);
        $email->setTo($this->getEmail());
        $email->setTemplate('AttendeeMail');
        $email->populateTemplate($this);
        $this->extend('updateTicketMail', $email);
        return $email->send();
    }
public function sendTicket()
    {
        // Get the mail sender or fallback to the admin email
        if (empty($from = Reservation::config()->get('mail_sender'))) {
            $from = Config::inst()->get('Email', 'admin_email');
        }

        $email = new Email();
        $email->setSubject(_t(
            'AttendeeMail.TITLE',
            'Your ticket for {event}',
            null,
            array(
                'event' => $this->Event()->Title
            )
        ));
        $email->setFrom($from);
        $email->setTo($this->getEmail());
        $email->setTemplate('AttendeeMail');
        $email->populateTemplate($this);
        $this->extend('updateTicketMail', $email);
        return $email->send();
    }
public function sendTicket ( ) { // Get the mail sender or fallback to the admin email if ( empty ( $ from = Reservation :: config ( ) -> get ( 'mail_sender' ) ) ) { $ from = Config :: inst ( ) -> get ( 'Email' , 'admin_email' ) ; } $ email = new Email ( ) ; $ email -> setSubject ( _t ( 'AttendeeMail.TITLE' , 'Your ticket for {event}' , null , array ( 'event' => $ this -> Event ( ) -> Title ) ) ) ; $ email -> setFrom ( $ from ) ; $ email -> setTo ( $ this -> getEmail ( ) ) ; $ email -> setTemplate ( 'AttendeeMail' ) ; $ email -> populateTemplate ( $ this ) ; $ this -> extend ( 'updateTicketMail' , $ email ) ; return $ email -> send ( ) ; }
Send the attendee ticket

@return mixed
Send the attendee ticket