you need to check the mail config in use
on the server open tinker and do
>>> config('mail')
and check that the settings are correct for your mailserver
When you sent mail through laravel they don't leave the same server.
I have any domains on my server
proyecto1.com, proyecto2.com, proyecto3.com
When I send emails with laravel, the emails between these domains are delivered.
in my domain proyecto1.com
// if delivered
Mail::send('test', [], function ($msj){
$msj->subject('test');
$msj->to('[email protected]');
});
// if delivered
Mail::send('test', [], function ($msj){
$msj->subject('test');
$msj->to('[email protected]');
});
// not delivered
Mail::send('test', [], function ($msj){
$msj->subject('test');
$msj->to('[email protected]');
});
I thinked it was a bad server configuration but I did a send with php and the mail if it was delivered.
mail('[email protected]', 'test','test');
I do not know what is the problem. Something similar to this situation has never happened to me.
excuse me for my terrible english
Please or to participate in this conversation.