Ok, let me start by saying that I'm pretty new to laravel 5. I have been looking for eternity on Google, trying to get a simple email to send, just by typing the appropriate URL with no luck. Unfortunately, the documentation I found was not so useful, and just gives a broad look (I understand that laravel 5 is new, but still disappointing haha). There is nothing unusual in what I'm trying to do, I just want it to work before I do anything else. I am trying to get this to work using gmail just now, but as soon as I get it, I will certainly try something like Mailgun. This is the code that I have now. The first is in mail.php:
return [ 'driver' => env('smtp'), 'host' => env('MAIL_HOST', 'smtp.gmail.com'), 'port' => env('MAIL_PORT', 587), 'from' => ['address' =>" exmaple@gmail.com " , 'name' => "example_name"], 'encryption' => 'tls', 'username' => env(' example@gmail.com '), 'password' => env('example'), 'sendmail' => '/usr/sbin/sendmail -bs', 'pretend' => false, ];
This is on my routes:
Route::get('test', function() { Mail::send('Email.test', function ($message) { $message->to(' example@gmail.com ', 'example_name')->subject('Welcome!'); }); });
I also tried MailController@Sending _Email for the path. This is in my MailController:
class MailController extends Controller{ public function Sending_Email() { $this->call('GET','Email.test'); return View('Email.test'); } }
and my opinion is simple code:
<html> <head> </head> <body> <h1>hey this is a test to see if my email system works</h1> </body> </html>
This is my mistake: Missing argument 1 for Illuminate\Support\Manager::createDriver(), called in /vagrant/leonis/vendor/laravel/framework/src/Illuminate/Support/Manager.php on line 89 and defined