PHP code example of namshi / emailvision

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

    

namshi / emailvision example snippets

 php


use Namshi\Emailvision\Client;

$config = array('template_for_password_reset_email' => array(
    'random'            => 'iTag',
    'encrypt'           => 'sTag',
    'senddate'          => new \DateTime(),
    'uidkey'            => 'uKey',
    'stype'             => 'stype',
));

$emailvisionClient = new Client($config);
$emailvisionClient->sendEmail("template_for_password_reset_email", "[email protected]", array('name' => 'Alex'));

php composer.phar update

phpunit
 php


$encrypt    = 'xxx';
$random     = 'yyy';
$email      = '[email protected]';