Support the ongoing development of Laravel.io →
posted 10 years ago
Mail

Hi,

Im using L4.2 guzzle ~5.2 homestead and mandrill.

Does anybody know what could be the cause or solution to this?

I set up mail as per one of the laracasts, everything was working properly for a few days, then suddenly I get

GuzzleHttp \ Exception \ ConnectException cURL error 7:

curl error 7 seems to mean that it cant connect.

I tried to send emails using a different app of mine (not laravel or guzzle but still using mandrill) and it works, Im pretty sure mandrill service is working the same.

https://mandrillapp.com/settings/api Does not show any new successful or failed requests.

I tried sending from different locations incase the port is blocked or something.

My api key is the same and I did not change anything to do with email. The only changes I made is to some environment variables that are not related. I changed it back anyway and it still does not work.

In the documentation it says to use guzzle 4 while I use guzzle 5 http://laravel.com/docs/4.2/mail Could that be the problem? But It worked before anyway so I really dont get it.

How would I downgrade guzzle btw? Change composer to "~4.*" and then do composer install?

Last updated 2 years ago.
0

Hmm, I restarted my computer and it suddenly worked again. (I think I might have tried restarting yesterday and it did not work but not sure).

Still would be good to have some ideas what could cause this. I dont want this happening on production :).

0

I came across this issue when starting to upgrade and modernise a L4.2 application.

Basically the way Guzzle 4 and >=5 work are slightly different.

https://gist.github.com/Caffe1neAdd1ct/7809a32a0a447947b0902873c24ab7f5

Hope this helps anyone still on L4

Last updated 6 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Daunus daunus Joined 3 Feb 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.