laravel-forge

How can I solve “Connection could not be established with host smtp.gmail.com”?

感情迁移 提交于 2019-12-02 05:40:42
问题 If I do send email on the my localhost, it works. No error But I try on the staging server, it display error like this : Swift_TransportException in StreamBuffer.php line 268: Connection could not be established with host smtp.gmail.com [Connection timed out #110] in StreamBuffer.php line 268 at Swift_Transport_StreamBuffer->_establishSocketConnection() in StreamBuffer.php line 62 at Swift_Transport_StreamBuffer->initialize(array('protocol' => 'tcp', 'host' => 'smtp.gmail.com', 'port' => '587

Laravel email with queue 550 error (too many emails per second)

泄露秘密 提交于 2019-11-28 13:30:45
Our emails are failing to send using Laravel with a Redis Queue. The code that triggers the error is this: ->onQueue('emails') $job = (new SendNewEmail($sender, $recipients))->onQueue('emails'); $job_result = $this->dispatch($job); In combination with this in the job: use InteractsWithQueue; Our error message is: Feb 09 17:15:57 laravel: message repeated 7947 times: [ production.ERROR: exception 'Swift_TransportException' with message 'Expected response code 354 but got code "550", with message "550 5.7.0 Requested action not taken: too many emails per second "' in /home/laravel/app/vendor

Laravel email with queue 550 error (too many emails per second)

感情迁移 提交于 2019-11-27 07:42:32
问题 Our emails are failing to send using Laravel with a Redis Queue. The code that triggers the error is this: ->onQueue('emails') $job = (new SendNewEmail($sender, $recipients))->onQueue('emails'); $job_result = $this->dispatch($job); In combination with this in the job: use InteractsWithQueue; Our error message is: Feb 09 17:15:57 laravel: message repeated 7947 times: [ production.ERROR: exception 'Swift_TransportException' with message 'Expected response code 354 but got code "550", with