This repository has been archived by the owner on Feb 6, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #273 Throwing Exception for bad URL formats (maitre-hibou)
This PR was squashed before being merged into the 3.2-dev branch (closes #273). Discussion ---------- Throwing Exception for bad URL formats Hello there, **Description** : When supplying a wrong URL format in the `MAILER_URL` environment variable, Swiftmailer Transport component is initialized with bundle default configuration values. Therefore, when trying to send emails, a "silent" error is triggered with the following message : `Exception occurred while flushing email queue: Connection could not be established with host localhost [Address not available #99]`. **Changes made** : This PR now throws an `InvalidArgumentException` if supplied URL is not parseable by PHP's `parse_url` method. Commits ------- c31bc23 Throwing Exception for bad URL formats
- Loading branch information