protected function addAddresses(Email $notification, \Swift_Message $email)
    {
        foreach ($notification->getTo() as $to) {
            $this->addAddress($email, 'to', $to);
        }

        foreach ($notification->getCc() as $cc) {
            $this->addAddress($email, 'cc', $cc);
        }

        foreach ($notification->getBcc() as $bcc) {
            $this->addAddress($email, 'bcc', $bcc);
        }

        foreach ($notification->getFrom() as $from) {
            $this->addAddress($email, 'from', $from);
        }
    }
protected function addAddresses(Email $notification, \Swift_Message $email)
    {
        foreach ($notification->getTo() as $to) {
            $this->addAddress($email, 'to', $to);
        }

        foreach ($notification->getCc() as $cc) {
            $this->addAddress($email, 'cc', $cc);
        }

        foreach ($notification->getBcc() as $bcc) {
            $this->addAddress($email, 'bcc', $bcc);
        }

        foreach ($notification->getFrom() as $from) {
            $this->addAddress($email, 'from', $from);
        }
    }
protected function addAddresses ( Email $ notification , \ Swift_Message $ email ) { foreach ( $ notification -> getTo ( ) as $ to ) { $ this -> addAddress ( $ email , 'to' , $ to ) ; } foreach ( $ notification -> getCc ( ) as $ cc ) { $ this -> addAddress ( $ email , 'cc' , $ cc ) ; } foreach ( $ notification -> getBcc ( ) as $ bcc ) { $ this -> addAddress ( $ email , 'bcc' , $ bcc ) ; } foreach ( $ notification -> getFrom ( ) as $ from ) { $ this -> addAddress ( $ email , 'from' , $ from ) ; } }
Adds to, cc, bcc and from addresses to the mail object.

@param Email $notification
@param $email
Adds to cc bcc and from addresses to the mail object .