PHP code example of sinevia / laravel-mail

1. Go to this page and download the library: Download sinevia/laravel-mail 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/ */

    

sinevia / laravel-mail example snippets


\Mail::raw('EMAILS WORKING TEXT', function ($message) {
    $message->from('[email protected]','From Name');
    $message->to('[email protected]','To Name');
    $message->cc('[email protected]','Cc Name');
    $message->bcc('[email protected]','Bcc Name');
    $message->subject("EMAILS WORKING SUBJECT");
});

// check for failures
if (\Mail::failures()) {
    dd('FAILED');
}
        
dd('SUCCESS');