PHP code example of fazland / notifire-bundle

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

    

fazland / notifire-bundle example snippets


public function registerBundles()
{
    return [
        // ...
        new NotifireBundle(),
        // ...
    ];
}

// Use 'default' mailer
$email = Notifire::email('default');

$email
    ->addFrom('[email protected]')
    ->addTo('[email protected]')
    ->setSubject('Only wonderful E-mails with Notifire!')
    ->addPart(Part::create($body, 'text/html'))
    ->send()
;