mosa
2 weeks ago
202
2
Laravel

laravel “error when sending email fwrite(): send of 18 bytes failed with errno=10054”

Posted 2 weeks ago by mosa

Hello

I have successfully sent messages in all my laravel projects to localhost with mailtrap. After testing Task Scheduling I got this error message:

fwrite (): send of 122 bytes failed with errno = 10054 An existing connection was forcibly closed by the remote host

i can't resolve this problem !!!!!!!!!!!!!!

.env file

MAIL_DRIVER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=****** MAIL_PASSWORD=****** MAIL_ENCRYPTION=null

php.ini file

[mail function]

SMTP=smtp.mailtrap.io smtp_port=2525 sendmail_from = [email protected] sendmail_path = ""C:\xampp\sendmail\sendmail.exe" -t"

Please sign in or create an account to participate in this conversation.