Jass
Jass

Reputation: 4115

fwrite() ssl broken pipe in swiftmailer while sending email

I am using Laravel 5.2. I am using Mail queue for sending email. Following is email queue syntax.

$mailArr = array();
$mailArr['subject'] = 'testing mail';
$mail_body = 'testing mail';
$mailArr['description'] =  $mail_body;
Mail::to($email)->queue(new CustomMail($mailArr));

So any suggestions please what could be the reason?

Upvotes: 10

Views: 5125

Answers (1)

Grant
Grant

Reputation: 6329

This response is received when the remote connection closes without informing your server as to why. Usually due to a restriction, such as mail size.

Try using an alternative mailer, such as Mailtrap for example and try the queue again to see if the error response is different.

It is likely you had a plumbing issue; a huge email in your queue prior to your other emails, that’s why sends were processing fine but your queue wasn’t.

Upvotes: 1

Related Questions