Hi,
I discovered a problem using Mail after upgrading a project from 5.4 to 5.5.
I made the following things to crosscheck:
php composer.phar create-project --prefer-dist laravel/laravel beta "5.4.*"
to create a brand new installation on my server. I modified the routes file for testing reasons to
Route::get('/', function () {
Mail::to('XXX')->send(new App\Mail\Test());
return view('welcome');
});
and i createt this Mailable
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class Test extends Mailable
{
use Queueable, SerializesModels;
public function __construct()
{
//
}
public function build()
{
return $this->from('XXX')->view('welcome');
}
}
Everything works fine in this version.
Now I cleaned all the webstorage on the server and run
php composer.phar create-project --prefer-dist laravel/laravel beta "5.5.*"
and created the same Mailable and edited the routes file the same way. Now I get an error.
Swift_TransportException Expected response code 220 but got code "", with message ""
In the env file I use MAIL_DRIVER=mail the complete error log is:
Laravel 5.5 requires version ~6.0 of Swift Mailer, this is mentioned in the upgrade guide. This seems to be related, I suggest that you check on SwiftMailer's repo for similar reports.
Hi, I discovered a problem using Mail after upgrading a project from 5.4 to 5.5.
I made the following things to crosscheck:
php composer.phar create-project --prefer-dist laravel/laravel beta "5.4.*"
to create a brand new installation on my server. I modified the routes file for testing reasons toand i createt this Mailable
Everything works fine in this version.
Now I cleaned all the webstorage on the server and run
php composer.phar create-project --prefer-dist laravel/laravel beta "5.5.*"
and created the same Mailable and edited the routes file the same way. Now I get an error.
Swift_TransportException Expected response code 220 but got code "", with message ""
In the env file I use
MAIL_DRIVER=mail
the complete error log is:This Problem drives me nuts. Does anybody have the same issue?
Thanks for helping/fixing this error, Niklas
P.S. the hosting is on a 1and1 shared server. The phpversion is 7.1.9 and the phpbuild information is: