How to Send Laravel Email via SMTP on Exabytes Hosting

Before starting you must prepare the following:


  • Laravel-based system / website that has been uploaded to hosting
  • The domain's MX Record has been redirected to the hosting.


If you have prepared both of them, now proceed to the next stage, namely:

  1. Login to Laravel Files
    You first log in to your Cpanel, if you have clicked the FILE MANAGER menu. Make sure you select the public_html folder or subdomain that has laravel installed.Find files .env.example. If you can't find it you can click settings and select Show Hidden File, you can right-click the file .env.example and then rename it to .env 
  2. Edit File .env
    This file contains several configurations related to Laravel, please select the .env file after that click Edit
  3. Send Laravel Email Via Gmail SMTP
    Find the following script:then customize it with this script:In the MAIL_HOST section you can fill in with your domain name or your nameserver yes

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.