src/Viserio/Component/Mail/Transport/MailgunTransport.php
protected function formatAddress(array $contacts): string
    {
        $formatted = [];

        foreach ($contacts as $address => $display) {
            $formatted[] = $display ? $display . \sprintf('<%s>', $address) : $address;
        }

        return \implode(',', $formatted);
    }
protected function formatAddress(array $contacts): string
    {
        $formatted = [];

        foreach ($contacts as $address => $display) {
            $formatted[] = $display ? $display . \sprintf('<%s>', $address) : $address;
        }

        return \implode(',', $formatted);
    }
Get Comma-Separated Address (with name, if available) for the API request.

@param array $contacts

@return string