PHP code example of implico / email-framework

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

    

implico / email-framework example snippets


  $smarty = new \Smarty();
  

  $smarty->addPluginsDir(path_to_core_plugins_dir);
  

  $smarty->configLoad(path_to_config_file1);  //first one should be the core config, e.g. __DIR__.'/vendor/email-framework/core/config.conf'
  $smarty->configLoad(path_to_config_file2);  //project or script-specific config files
  

  $smarty->setTemplateDir(array(
    0 => path_to_project,
    'layouts' => path_to_project_layouts,
    'scripts' => path_to_project_scripts,
    'styles' => path_to_project_css
  ));
  

  $html = $smarty->fetch(path_to_script)

  //send the email
  //...
  

composer global update implico/email-framework