PHP code example of xinix-technology / bono-mail

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

    

xinix-technology / bono-mail example snippets



return array(
    'bono.providers' => array(
        // ...
        '\\BonoMail\\Provider\\MailProvider' => array(
            'defaultMessage' => array(
                'from' => array('[email protected]' => 'John Doe'),
            ),
            'transports' => array(
                'smtp' => array(
                    'driver' => 'smtp',
                    'host' => 'localhost',
                    'port' => 25,
                ),
            ),
        ),
        // ...
    ),
);




$result = \BonoMail\Mail::factory('Some subject for you')
    ->body('test', array())
    ->to(array('[email protected]'))
    ->send();