PHP code example of carter / mailer

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

    

carter / mailer example snippets


$to="[email protected]";
#or
$to=array('[email protected]'=>'YourName','[email protected]'=>'SecondName');

$subject="Subject of the email";
$message="Body of your message" #you can also load the view in your message

$result=Mailer::sendmail($to,$subject,$message);
bash
php artisan vendor:publish