1. Exception info
Swift_TransportException
Expected response code 220 but got code "502", with message "502 Error: command not implemented "
2. Mail Config
return array(
'driver' => 'smtp',
'host' => 'smtp.exmail.qq.com',
'port' => 25,
'from' => array('address' => 'admin@mydomain.net', 'name' => 'admin'),
'encryption' => 'tls',
'username' => 'myusername',
'password' => 'mypassword',
'sendmail' => '/usr/sbin/sendmail -bs',
'pretend' => false,
);
3. Code
$data['message'] = 'test';
Mail::send('emails.welcome', $data, function($message)
{
$message->to('x@qq.com', 'test')->subject('test');
});
How can I solve this problem ?
This smtp host doesn't support TLS,when I remove 'encryption' => 'tls', Mail::send() is ok.
Anyone has good ides?
Sorry, not trying to be rude but if the SMTP server doesn't support TLS, isn't the only solution to remove the TLS encryption setting as you said above? :)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community