PHP code example of contributte / latte-email

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

    

contributte / latte-email example snippets


use Contributte\Latte\Email\Helpers\EmailHelper;

public function createTemplate()
{
    $template = parent::createTemplate();
    $template->addFilter('email', [EmailHelper::class, 'mailto']);
}