1. Laravel

Laravel mail configuration test

To test the mail configuration of Laravel. Follow this simple steps –

SSH into the server

  • Run the tinker Artisan command to enter the Tinker environment
php artisan tinker
  • Run this following command
Mail::send('welcome', [], function($message) {
    $message->to('[email protected]')->subject('Testing mails');
});

If tinker shows successful then check mail to ensure mail received properly.

Otherwise tinker will throw error. Follow the error to solve the mail configuration.

https://arshohag.rdevs.xyz
Do you like Ashiqur Rahman's articles? Follow on social!
Comments to: Laravel mail configuration test

Your email address will not be published. Required fields are marked *

Attach images - Only PNG, JPG, JPEG and GIF are supported.

Login

Welcome to rDevs

Brief and amiable onboarding is the first thing a new user sees in the theme.
Join rDevs

start writing