src/Mail/Transport/MailGunClient.php
protected function prepareTo(Swift_Mime_SimpleMessage $message)
    {
        $to = array_map(function ($name, $address) {
            return $name ? $name." <{$address}>" : $address;
        }, $this->combineTo($message), array_keys($this->combineTo($message)));

        return implode(',', $to);
    }
protected function prepareTo(Swift_Mime_SimpleMessage $message)
    {
        $to = array_map(function ($name, $address) {
            return $name ? $name." <{$address}>" : $address;
        }, $this->combineTo($message), array_keys($this->combineTo($message)));

        return implode(',', $to);
    }
protected function prepareTo ( Swift_Mime_SimpleMessage $ message ) { $ to = array_map ( function ( $ name , $ address ) { return $ name ? $ name . " <{$address}>" : $ address ; } , $ this -> combineTo ( $ message ) , array_keys ( $ this -> combineTo ( $ message ) ) ) ; return implode ( ',' , $ to ) ; }
Format the to addresses to match Mailgun message.mime format.

@param Swift_Mime_SimpleMessage $message

@return string
Format the to addresses to match Mailgun message . mime format .