Jobs Hunt Guide Book

Testing SMTP

  • Login to your FTP account

  • Turn the Debug mode On

  • Visit app\Http open routes.php

  • Paste the below code to it just <?php tags

  • Make sure to replace in the blow code with your email address first.

Route::get('test', function(){
    \Illuminate\Support\Facades\Mail::raw('Testing Eamil', function ($message) {
    return 'Success - Eamil is sent';
  • Vist

  • If Success - Eamil is sent is displayed in browser that means email is working fine. otherwise there is some error.

  • If there is any error, it will be displayed properly when debug mode is on.

  • Remove the code after test.