Here is my Route.php
Route::get('invitations' , 'Invitationscontroller@accept');
Below is my Invitationscontroller.php
public function accept(){
$email_id = Users::select('email_id')->get();
Mail::send('test' , array('user' => $email_id) , function ($message){
$message -> to('[email protected]' ) -> subject ('Welcome!!!');
});
return "Success";
}
I have configured mail.php as per requirements stated in tutorial.
When I run the URL, I get the error as
Swift_TransportException in AbstractSmtpTransport.php line 383: Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required
"
Where m I missing something?
Thank you.