PHP code example of axyr / laravel-email-viewer

1. Go to this page and download the library: Download axyr/laravel-email-viewer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

axyr / laravel-email-viewer example snippets



use Axyr\EmailViewer\Facades\Emails;

Emails::create($mimeMessage);
Emails::find($fileNameOrId);
Emails::delete($fileNameOrId);
Emails::paginate(10);
Emails::prune();
Emails::server('database')->get();

composer 

php artisan vendor:publish --provider="Axyr\EmailViewer\EmailViewerServiceProvider"

php artisan email-viewer:send-test [email protected] [email protected]