did you ever get a fix for this?
fwrite(): SSL: Broken pipe / Email
Hi There,
I'm getting following error, when I try to send welcome email with user registration,
ErrorException in StreamBuffer.php line 232:
fwrite(): SSL: Broken pipe
and My Controller is
/**
* Create a new user instance after a valid registration.
*
* @param array $data
* @return Client
*/
protected function create(array $data){
$client = Client::create([
'name' => $data['name'],
'telephone' => $data['telephone'],
'email' => $data['email'],
'notes' => 'New Account',
'enabled' => '1',
'password' => bcrypt($data['password']),
]);
//----------------Send Welcome Email -----------------------------------------
$data['verification_code'] = $client->verification_code;
Mail::send('client.email.welcome', $data, function($message) use ($data) {
$message->from('[email protected]', "Welcome to COS");
$message->subject("Welcome to COS");
$message->to($data['email']);
});
return $client;
}
Please, Can anyone help or advice about this matter ?
Thanks
Hi folks,
I went trough this issues (fwrite(): SSL: Broken pipe) this week, and after investigate a little deeper, I found out that the problem is related to the Rate Limit configured on the smtp server.
So, for who has access to the smtp server, choose a Rate Limit enough to comply with your demand, and for who doens't, may need to work around the rate limit setting a timer to hold the queue when reach the limit
best regards
Please or to participate in this conversation.