PHP code example of compolomus / kmail

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

    

compolomus / kmail example snippets



use Compolomus\Kmail;

$test = new KMail('Test text');
$test
    ->addAdress('[email protected]')
    ->addAdress('[email protected]')
    ->addFile('class.php', file_get_contents(__FILE__))
    ->setSubject('Test mail')
    ->send();
$test->debug();