huedaya.com/blog
just bunch of .md files
Send Test E-mail Using 1-Line Laravel Tinker Command

So here is how you can test e-mail configuration in Laravel simply with one line Tinker code:

bash
php artisan tinker --execute="eval( base64_decode('TWFpbDo6cmF3KCdIZWxsbyBXb3JsZCEnLCBmdW5jdGlvbigkbXNnKSB7JG1zZy0+dG8oJ2VtYWlsQGV4YW1wbGUuY29tJyktPnN1YmplY3QoJ1Rlc3QgRW1haWwnKTsgfSk7') );"

The script above actually running this following command:

php
Mail::raw(
    'Hello World!', 
    function($msg) {
        $msg->to('[email protected]')->subject('Test Email'); 
    }
);

That's it!

Last update: 2024-02-18 04:53:09 UTC (5 months ago)