Repository navigation
Browning 1.33 treats any HTTP error from Mailgun or reCAPTCHA as a failure, and bounds how long a request can take.
Behaviour
Mailer::send()reportssuccess => falsewhenever Mailgun answers 4xx or 5xx. A rejected key (401 or 403) gives "This website is unable to send email."; any other error gives "Unable to send email at this time." Withdebug: truethe message carries the status and body. Previously a 400 or 401 with a JSON body was reported as success.Recaptcha::verify()treats 4xx and 5xx the same way.- cURL requests have a 10 second connect timeout and a 30 second total timeout.
API
Responsegains astatusCodeproperty, andfailed()is true for 4xx and 5xx.
Supporting
- Seven new tests cover the status handling, and the test echo server answers
/status/<code>. 31 tests on PHP 8.2 to 8.6. - No
curl_close()call, which PHP 8.5 deprecates.
Full Changelog: 1.32...1.33