I had this issue too, this is how i fixed it. Though it is not advisable to change vendor files but this fix worked and it enable me to send mail from my localhost. Locate StreamBuffer in your vendor folder. It should be in this location C:\xampp\htdocs\mylaravel\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport Open the file StreamBuffer.php Find this method _establishSocketConnection…
Explore More