I'm trying to send an email using laravel, but for some reason it's not sending it. I chose the smtp driver, and it didn't work with our smtp server, so i tried the mailgun driver, which i've used in the past, and in the mailgun dashboard is not appearing either as sended or dropped.
I tried to use the log driver, and it's not outputing in the log file. So i went in a killing frenzy, and deleted ALL the mail.php file, and it still "worked", i mean, it didn't gave me any error or misconfiguration info. Here's my mail sending code:
public function testMail(){
$sent = Mail::send('emails.cancelOrder', array('key' => 'value'), function($message)
{
$message->from('xxxxx@xxxx.com');
$message->to('xxxxx@xxxx.com', 'John Smith')->subject('Welcome!');
});
if( ! $sent) dd("something wrong");
dd("send");
}
}
It's always returning the "send" string.
Any ideas?